File tree 3 files changed +8
-9
lines changed
3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 9
9
[ ![ DOI] ( https://zenodo.org/badge/DOI/10.5281/zenodo.1173089.svg?style=flat-square )] ( https://doi.org/10.5281/zenodo.1173089 )
10
10
[ ![ 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 )
11
11
[ ![ Downloads] ( https://pepy.tech/badge/tikzplotlib/month?style=flat-square )] ( https://pepy.tech/project/tikzplotlib )
12
+
12
13
<!-- [](https://pypistats.org/packages/tikzplotlib)-->
13
14
14
15
[ ![ 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/
31
32
library that sits on top of [ PGF/TikZ] ( https://en.wikipedia.org/wiki/PGF/TikZ ) and
32
33
describes graphs in terms of axes, data etc. Consequently, the output of tikzplotlib
33
34
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
37
38
38
39
than [ raw TikZ output] ( https://matplotlib.org/users/whats_new.html#pgf-tikz-backend ) .
39
40
For example, the matplotlib figure
Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = tikzplotlib
3
- version = 0.9.16
3
+ version = 0.9.17
4
4
author = Nico Schlömer
5
5
6
6
description = 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
288
288
esp = data ["externals search path" ]
289
289
opts .append (f"search path={{{ esp } }}" )
290
290
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 " )
296
294
else :
297
295
if len (opts ) > 0 :
298
296
opts_str = "," .join (opts )
You can’t perform that action at this time.
0 commit comments