Skip to content

Commit

Permalink
Merge pull request #533 from nschloe/posix-fix
Browse files Browse the repository at this point in the history
posix fix
  • Loading branch information
nschloe authored Dec 23, 2021
2 parents 1e30229 + 51b36dd commit fe5dcf5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1173089.svg?style=flat-square)](https://doi.org/10.5281/zenodo.1173089)
[![GitHub stars](https://img.shields.io/github/stars/nschloe/tikzplotlib.svg?style=flat-square&logo=github&label=Stars&logoColor=white)](https://github.com/nschloe/tikzplotlib)
[![Downloads](https://pepy.tech/badge/tikzplotlib/month?style=flat-square)](https://pepy.tech/project/tikzplotlib)

<!--[![PyPi downloads](https://img.shields.io/pypi/dm/tikzplotlib.svg?style=flat-square)](https://pypistats.org/packages/tikzplotlib)-->

[![Documentation Status](https://readthedocs.org/projects/tikzplotlib/badge/?version=latest&style=flat-square)](https://readthedocs.org/projects/tikzplotlib/?badge=latest)
Expand All @@ -31,9 +32,9 @@ The output of tikzplotlib is in [PGFPlots](https://github.com/pgf-tikz/pgfplots/
library that sits on top of [PGF/TikZ](https://en.wikipedia.org/wiki/PGF/TikZ) and
describes graphs in terms of axes, data etc. Consequently, the output of tikzplotlib

- retains more information,
- can be more easily understood, and
- is more easily editable
- retains more information,
- can be more easily understood, and
- is more easily editable

than [raw TikZ output](https://matplotlib.org/users/whats_new.html#pgf-tikz-backend).
For example, the matplotlib figure
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = tikzplotlib
version = 0.9.16
version = 0.9.17
author = Nico Schlömer
author_email = [email protected]
description = Convert matplotlib figures into TikZ/PGFPlots
Expand Down
8 changes: 3 additions & 5 deletions src/tikzplotlib/_line2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,9 @@ def _table(obj, data): # noqa: C901
esp = data["externals search path"]
opts.append(f"search path={{{esp}}}")

if len(opts) > 0:
opts_str = ",".join(opts)
content.append(f"table [{opts_str}] {{{rel_filepath}}};\n")
else:
content.append(f"table {{{rel_filepath}}};\n")
opts_str = ("[" + ",".join(opts) + "] ") if len(opts) > 0 else ""
posix_filepath = rel_filepath.as_posix()
content.append(f"table {{opts_string}}{{{posix_filepath}}};\n")
else:
if len(opts) > 0:
opts_str = ",".join(opts)
Expand Down

0 comments on commit fe5dcf5

Please sign in to comment.