Open Mattriks opened 5 years ago
curiously, the problem is data dependent. see https://github.com/GiovineItalia/Gadfly.jl/issues/1273, which is fixed by https://github.com/GiovineItalia/Gadfly.jl/pull/1281
The issue outlined in GiovineItalia/Gadfly.jl#1273 is not the same as the issue above. The issue above is not data dependent and only affects the Cairo backends. The issue in GiovineItalia/Gadfly.jl#1273 is data-dependent and affects SVG and Cairo backends.
However, the solution to both issues may be related.
I'm opening this issue here, because I can demonstrate the issue using Compose. Note that there are some examples in Gadfly where this issue does currently occur (e.g.
Geom.boxplot
):If you wanted to draw in PNG only, there would be no need to include the
svgclass("marker")
in the above the code. But if you want users to be able to plot to PNG & SVG then its important to includesvgclass()
e.g. in Gadfly. In the above code there are two issues:ctx3 = compose(ctx, (context(), circle([0.25,0.25,0.75], [0.1,0.9,0.1], [0.01]), cs, svgclass("marker")))
. The circles will then appear in their correct color - problem solved!My thoughts are that point 1 is as important as point 2. Making sure that forms and their properties are in the same context will fix some issues in Gadfly now.