File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 99[ ![ DOI] ( https://zenodo.org/badge/DOI/10.5281/zenodo.1173089.svg?style=flat-square )] ( https://doi.org/10.5281/zenodo.1173089 )
1010[ ![ 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 )
1111[ ![ Downloads] ( https://pepy.tech/badge/tikzplotlib/month?style=flat-square )] ( https://pepy.tech/project/tikzplotlib )
12+
1213<!-- [](https://pypistats.org/packages/tikzplotlib)-->
1314
1415[ ![ Documentation Status] ( https://readthedocs.org/projects/tikzplotlib/badge/?version=latest&style=flat-square )] ( https://readthedocs.org/projects/tikzplotlib/?badge=latest )
@@ -31,9 +32,9 @@ The output of tikzplotlib is in [PGFPlots](https://github.com/pgf-tikz/pgfplots/
3132library that sits on top of [ PGF/TikZ] ( https://en.wikipedia.org/wiki/PGF/TikZ ) and
3233describes graphs in terms of axes, data etc. Consequently, the output of tikzplotlib
3334
34- - retains more information,
35- - can be more easily understood, and
36- - is more easily editable
35+ - retains more information,
36+ - can be more easily understood, and
37+ - is more easily editable
3738
3839than [ raw TikZ output] ( https://matplotlib.org/users/whats_new.html#pgf-tikz-backend ) .
3940For example, the matplotlib figure
Original file line number Diff line number Diff line change 11[metadata]
22name = tikzplotlib
3- version = 0.9.16
3+ version = 0.9.17
44author = Nico Schlömer
5566description = Convert matplotlib figures into TikZ/PGFPlots
Original file line number Diff line number Diff line change @@ -288,11 +288,9 @@ def _table(obj, data): # noqa: C901
288288 esp = data ["externals search path" ]
289289 opts .append (f"search path={{{ esp } }}" )
290290
291- if len (opts ) > 0 :
292- opts_str = "," .join (opts )
293- content .append (f"table [{ opts_str } ] {{{ rel_filepath } }};\n " )
294- else :
295- content .append (f"table {{{ rel_filepath } }};\n " )
291+ opts_str = ("[" + "," .join (opts ) + "] " ) if len (opts ) > 0 else ""
292+ posix_filepath = rel_filepath .as_posix ()
293+ content .append (f"table {{opts_string}}{{{ posix_filepath } }};\n " )
296294 else :
297295 if len (opts ) > 0 :
298296 opts_str = "," .join (opts )
You can’t perform that action at this time.
0 commit comments