Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving gadfly plot results in a pdf with messed up axis labels. #359

Open
s-baumann opened this issue Jan 17, 2023 · 1 comment
Open

Saving gadfly plot results in a pdf with messed up axis labels. #359

s-baumann opened this issue Jan 17, 2023 · 1 comment

Comments

@s-baumann
Copy link

In trying to save a plot in Gadfly the axis labels end up being messed up. The following code produces a figure with messed up labels (which is below).

using DataFrames
using Gadfly, Cairo, Fontconfig
my_frame = DataFrame(time=1917:2018, price=1.02.^(0:101))
plt = plot(my_frame, x=:time, y=:price, Geom.line)
img = PDF("C:\\temp\\image.pdf", 20cm, 20cm)
draw(img, plt)

image.pdf

I think the issue is in Cairo as the figure looks ok within VS Code

@Mattriks
Copy link

Mattriks commented Feb 5, 2023

#349 ?

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

No branches or pull requests

2 participants