FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix incorrect initialization of plot dimensions · gnuplot/gnuplot-old@d72795a · GitHub

Repository navigation

Commit d72795a

Browse files
sfeam
committed
fix incorrect initialization of plot dimensions
1 parent 35c6f0e commit d72795a

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

‎ChangeLog‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2017-05-02 Ethan A Merritt <merritt@u.washington.edu>
2+
3+
* term/canvas.trm: Fix incorrect initialization of axis width/height.
4+
Bug #1925
5+
16
2017-04-25 Ethan A Merritt <merritt@u.washington.edu>
27

38
* src/fit.c (backup_file) demo/fit.dem docs/gnuplot.doc:

‎term/canvas.trm‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Hello, Emacs, this is -*-C-*-
2-
* $Id: canvas.trm,v 1.80 2017-02-17 20:19:25 sfeam Exp $
2+
* $Id: canvas.trm,v 1.81 2017-05-02 19:41:14 sfeam Exp $
33
*
44
*/
55

@@ -665,9 +665,6 @@ CANVAS_text()
665665
fprintf(gpoutfile, "gnuplot.plot_logaxis_r = %d;\n",
666666
axis_array[POLAR_AXIS].log ? 1: 0);
667667

668-
fprintf(gpoutfile, "gnuplot.plot_axis_width = gnuplot.plot_axis_xmax - gnuplot.plot_axis_xmin;\n");
669-
fprintf(gpoutfile, "gnuplot.plot_axis_height = gnuplot.plot_axis_ymax - gnuplot.plot_axis_ymin;\n");
670-
671668
/*
672669
* Note: mouse_alt_string is set by 'set mouse mouseformat "foo"'
673670
* The only strings currently recognized by gnuplot_mouse.js are
@@ -697,6 +694,9 @@ CANVAS_text()
697694
} else
698695
fprintf(gpoutfile, "gnuplot.plot_timeaxis_y = \"\";\n");
699696

697+
fprintf(gpoutfile, "gnuplot.plot_axis_width = gnuplot.plot_axis_xmax - gnuplot.plot_axis_xmin;\n");
698+
fprintf(gpoutfile, "gnuplot.plot_axis_height = gnuplot.plot_axis_ymax - gnuplot.plot_axis_ymin;\n");
699+
700700
} /* End of section writing out variables for mousing */
701701

702702
/* This is the end of the javascript plot */

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL