It seems that this topic was discussed before, but I could not find an answer. I am using Julia 1.1.1.
I am trying to produce histograms by using Gadfly, but once I load up Cario and Fontconfig, the plot command stops working. Here are some examples.
Example 1:
using RDatasets, Gadfly
plot(dataset(“ggplot2”, “diamonds”), x=“Price”, color=“Cut”, Geom.histogram)
This works fine. No problem arises.
Example 2:
using Cairo, Fontconfig
using RDatasets, Gadfly
eg = plot(dataset(“ggplot2”, “diamonds”), x=“Price”, color=“Cut”, Geom.histogram)
draw(PDF(“eg.pdf”, 4inch, 4inch), eg)
Example 2 does not work. Has anybody encountered this problem before? Is there a solution?
Thank you very much.
Best,
SJ