Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

use of dufte with tikzplotlib? #22

Closed
e-dub opened this issue Jan 26, 2021 · 2 comments
Closed

use of dufte with tikzplotlib? #22

e-dub opened this issue Jan 26, 2021 · 2 comments

Comments

@e-dub
Copy link

e-dub commented Jan 26, 2021

I have been using your tikzplotlib for a while and just discovered dufte! Very nice!

I would like to use this with tikzplotlib to get the legend style here. Am I missing the command or does this indeed not work?

@nschloe
Copy link
Owner

nschloe commented Jan 26, 2021

No idea, never tried that. You'll be the judge of that. Sounds like a tikzplotlib issue anyway.

@e-dub e-dub closed this as completed Feb 1, 2021
@e-dub
Copy link
Author

e-dub commented Jul 25, 2021

I finally got to this work with add the following to my LaTeX preamble:

\pgfplotsset{compat=newest}
\pgfplotsset{every axis y label/.style={at={(-0.1, 1.05)},  anchor=south east, rotate=0.0},      
             axis x line*=bottom,
             axis y line*=left,
             axis x line shift=17pt,
             axis y line shift=17pt,
             separate axis lines,
             clip=false}

and changing tikzplotlib/_text.py line 51 to
scaling = 1.0 * size / data["font size"]
(scaling was 0.5)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants