KristofferC / PGFPlotsX.jl

Plots in Julia using the PGFPlots LaTeX package
Other
301 stars 40 forks source link

Figure size in Jupyter notebooks #177

Closed tamasgal closed 5 years ago

tamasgal commented 5 years ago

Is there an easy way to scale up the figures which are shown in Jupyter notebooks? I often play around in notebooks to produce a plot and don't want to change the axis directly, I just need a zoom to see it better on the screen ;)

Something like a global zoom factor would be nice, also for presentations (e.g. when using the RISE plugin), but as far as I have seen in tikzdocument.jl, a PDF is produced and then converted, so I guess that's the place where the axis could be modified, without affecting the actual figure's dimensions.

KristofferC commented 5 years ago

How about

push!(PGFPlotsX.CUSTOM_PREAMBLE, raw"\pgfplotsset{scale=3.0}")
tamasgal commented 5 years ago

Yeah, that'll do, good idea! Thanks ;) What do you think a about a helper function to set this?

KristofferC commented 5 years ago

We have a quite strong philosophy that help about PGFPlots itself should be looked up in sources that apply to tex PGFPlots. The manual and functions in this package is mostly there as a convenience to transfer that knowledge to the julia world.

For this issue I just looked up how you would do it in tex and then I knew how to apply that here.

Instead of adding a bunch of small helper functions I think something like a FAQ in the docs might be better.

tamasgal commented 5 years ago

I fully understand, let's leave it like this :)