plotlyjs png fix; NEWS update for 0.7.2

This commit is contained in:
Thomas Breloff 2016-06-16 20:58:44 -04:00
parent b0bc68ae8a
commit f3544dc826
2 changed files with 14 additions and 1 deletions

13
NEWS.md
View File

@ -9,6 +9,19 @@
## 0.7 (current master/dev)
#### 0.7.2
- line_z arg for multicolored line segments
- pyplot
- line_z (2d and 3d)
- pushed all fig updates into display pipeline
- remove native sticks/hline/vline in favor of recipes
- unicodeplots cleanup, ijulia fixes, ascii canvas
- `curves` series type
- `iter_segments` iterator
- moved arcdiagram out and into PlotRecipes (thanks @diegozea)
- several other fixes/checks
#### 0.7.1
- inset (floating) subplots

View File

@ -65,7 +65,7 @@ function _writemime(io::IO, ::MIME"image/svg+xml", plt::Plot{PlotlyJSBackend})
end
function _writemime(io::IO, ::MIME"image/png", plt::Plot{PlotlyJSBackend})
tmpfn = tempname() * "png"
tmpfn = tempname() * ".png"
PlotlyJS.savefig(plt.o, tmpfn)
write(io, read(open(tmpfn)))
end