Skip to content

Commit

Permalink
plot: update Plot.WriterTo documentation
Browse files Browse the repository at this point in the history
#587 updated vg/draw.NewFormattedCanvas to handle .tex files,
but we didn't update the documentation of plot.Plot.{Save,WriterTo}
  • Loading branch information
sbinet committed Apr 6, 2020
1 parent 6973214 commit 4235fea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plot.go
Expand Up @@ -439,7 +439,7 @@ func (p *Plot) NominalY(names ...string) {
//
// Supported formats are:
//
// eps, jpg|jpeg, pdf, png, svg, and tif|tiff.
// eps, jpg|jpeg, pdf, png, svg, tex and tif|tiff.
func (p *Plot) WriterTo(w, h vg.Length, format string) (io.WriterTo, error) {
c, err := draw.NewFormattedCanvas(w, h, format)
if err != nil {
Expand All @@ -454,7 +454,7 @@ func (p *Plot) WriterTo(w, h vg.Length, format string) (io.WriterTo, error) {
//
// Supported extensions are:
//
// .eps, .jpg, .jpeg, .pdf, .png, .svg, .tif and .tiff.
// .eps, .jpg, .jpeg, .pdf, .png, .svg, .tex, .tif and .tiff.
func (p *Plot) Save(w, h vg.Length, file string) (err error) {
f, err := os.Create(file)
if err != nil {
Expand Down

0 comments on commit 4235fea

Please sign in to comment.