Removed broken dpi option from Gadfly

pull/17/head
Matti Pastell 2014-12-05 09:34:08 +02:00
parent b9bf5a4b62
commit 7239424432
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@ const rcParams =
:out_width=> nothing, #Defined separately for each format
:out_height=> nothing,
:fig_ext => ".png",
:dpi => 200,
:dpi => 96,
:term=> false,
:name=> nothing,
:wrap=> true,

View File

@ -29,8 +29,10 @@ function Base.display(report::Report, m::MIME"image/png", p::Plot)
report.fignum += 1
#TODO other formats
r = chunk[:dpi]/96 #Relative to Gadfly default 96dpi
draw(PNG(full_name, chunk[:fig_width]inch*r, chunk[:fig_height]inch*r ), p)
#r = chunk[:dpi]/96 #Relative to Gadfly default 96dpi
#TODO Look for a corre
draw(PNG(full_name, chunk[:fig_width]inch, chunk[:fig_height]inch), p)
#out = open(full_name, "w")
#writemime(out, m, data)
#close(out)