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

draw SVG does not work #1227

Closed
matthieugomez opened this issue Dec 10, 2018 · 2 comments
Closed

draw SVG does not work #1227

matthieugomez opened this issue Dec 10, 2018 · 2 comments

Comments

@matthieugomez
Copy link

matthieugomez commented Dec 10, 2018

 img = SVG("iris_plot.svg", 14cm, 8cm)
draw(img, p)
#  Warning: For svg transparent colors, use either e.g. fill(RGBA(r,g,b,a)) or fillopacity(a), but not both.

The file iris_plot.svg, opened in Chrome, gives

This page contains the following errors: error on line 97 at column 173: Attribute fill-opacity redefined
Below is a rendering of the page up to the first error.

GiovineItalia/Compose.jl#332 @Mattriks

@matthieugomez matthieugomez changed the title draw SVG does not work` draw SVG does not work Dec 10, 2018
@Mattriks
Copy link
Member

The following example works for me on Gadfly v1.0.1 and Compose v0.7.2.

using DataFrames, Gadfly, RDatasets
iris = dataset("datasets","iris")
p = plot(iris, x=:SepalLength, y=:PetalLength, color=:Species, Geom.point)
draw(SVG("iris_plot.svg", 14cm, 8cm), p)
draw(SVG(14cm, 8cm), p)

I can open the file in Chrome. What is your plot statement?

@matthieugomez
Copy link
Author

I am sorry, it works correctly after updating Gadfly to 1.01.

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