Plots.jl icon indicating copy to clipboard operation
Plots.jl copied to clipboard

Error about savefig

Open Freed-Wu opened this issue 4 years ago • 7 comments

Details

This issue is the continuance of #791

Reproduce Procedure

#!/usr/bin/env julia
# export GKS_ENCODING=utf-8
# julia: 1.4.0
# Plot.jl: 0.29.1
# sci-visualization/gr: 0.50.0-r1
using Plots
xlabel!("你好")

Screenshot from 2020-08-28 22-44-19

This is correct. However.

savefig("a.pdf")

Screenshot from 2020-08-28 22-44-31

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot x
plotly x
plotlyjs x
pgfplotsx x
inspectdr x

Freed-Wu avatar Aug 29 '20 01:08 Freed-Wu

Note that it happens with some Polish letters like ś ć ą, but not with ó for example. Also only appears for me with the .pdf format, others are fine

krynju avatar Dec 27 '20 14:12 krynju

Has there been any progress on this lately? It's a pitty would really love to have .pdf pictures for vector graphics.

Zitzeronion avatar Apr 21 '21 10:04 Zitzeronion

I have the same issue with "-" dash as minus on yaxis when saving as 'pdf'. Using Palatino font. Screen Shot 2021-06-03 at 17 31 20

luboshanus avatar Jun 03 '21 15:06 luboshanus

I still have this issue. My workaround was to save as SVG and then convert the SVG to PDF.

jerlich avatar May 29 '22 23:05 jerlich

Can you recreate the issue with GR alone?

BeastyBlacksmith avatar May 30 '22 07:05 BeastyBlacksmith

I am not sure what you mean by "with GR alone". Do you mean not using Julia ? Or not using plots.jl?

jerlich avatar Jun 02 '22 21:06 jerlich

Probably the later one. using GR instead of using Plots

Zitzeronion avatar Jun 03 '22 05:06 Zitzeronion

Should be reported to GR.

t-bltg avatar Nov 27 '22 11:11 t-bltg