Skip to content

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

@s-baumann

Description

@s-baumann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions