Skip to content

Commit

Permalink
- make svg mode default for plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketlaunchr-cto committed Apr 11, 2020
1 parent b932392 commit 031f88c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plot/plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ type Plot struct {
// }
//
// plt, _ := plot.Open("Linear", 150, 250)
// graph.Render(chart.PNG, plt)
// graph.Render(chart.SVG, plt)
// plt.Display()
// <-plt.Closed
//
Expand Down Expand Up @@ -192,7 +192,7 @@ func (p *Plot) Display(mime ...MIME) error {

var prefix string
if len(mime) == 0 {
prefix = "data:image/png;base64, "
prefix = "data:image/svg+xml;base64, "
} else {
prefix = "data:image/" + string(mime[0]) + ";base64, "
}
Expand Down

0 comments on commit 031f88c

Please sign in to comment.