bugGNU Octave - Bugs: bug #40269, Gnuplot windows terminal: ylabel...


bug #40269: Gnuplot windows terminal: ylabel is not rotated parallel to y-axis

Submitted by:  Philip Nienhuis <philipnienhuis>
Submitted on:  Mon 14 Oct 2013 06:57:16 PM UTC  
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Philip Nienhuis Open/Closed:  Closed
Release:  dev Operating System:  Microsoft Windows

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


( Jump to the original submission)

Sun 22 Oct 2017 05:50:04 PM UTC, comment #13:

With a current 4.3.0+ tip (Oct 22, 2017) crossbuilt for 64b Windows I don't see the buggy behavior.
In particular, my example in the original report works fine now.

Shall I close this report with "fixed")

Philip Nienhuis <philipnienhuis>
Project Member
Mon 14 Mar 2016 10:32:51 AM UTC, comment #12:

When I use bellow script, the ylabel and text are not oriented correctly in gnuplot window.

Then when I check gnuplot options "Double buffer" and "oversamplig" the graphics is redrawn correctly.

This options can be set permanenty in Roaming\wgnuplot.ini

GNU Octave Version: 4.0.0
GNU Octave License: GNU General Public License
Operating System: MINGW32_NT-6.1 Windows 7 Service Pack 1 i686

Gnuplot 4.6 patchlevel 7

(file #36629, file #36630)

Fri 13 Mar 2015 01:47:42 PM UTC, comment #11:

I adapted your script so the line and text would be plotted at the same time, I did something like this (from memory):

All I did was an install of 4.0.0-rc1 on a stock Windows XP, nothing customized about it. If this is just the way Gnuplot behaves on Windows XP vs newer releases, then so be it.

Mike Miller <mtmiller>
Project Administrator
Fri 13 Mar 2015 06:54:09 AM UTC, comment #10:

Using the following script with Octave 4.0.0-rc1 in Win7:

I get the attached screen. I am using gnuplot 4.6.6 that bundled
with MXE-Octave 4.0.0-rc1.

Your x-axis is [0:1] and mine is [1:2]. Did you tried the
same script?
Is the rotation difference caused by differnece in wgnuplot.ini?

(file #33331)

Avinoam Kalma <avinoam>
Project Member
Fri 13 Mar 2015 02:32:57 AM UTC, comment #9:

Ok, thanks. I agree the PNG file produced by Gnuplot does have the correct rotation, but the on-screen display of the figure does not show the proper rotation. I think this is what this report was originally about, see the original attachment. I'm attaching another screenshot to show the problem.

(file #33329)

Mike Miller <mtmiller>
Project Administrator
Thu 12 Mar 2015 09:35:01 PM UTC, comment #8:

I have used the following script (MXE-Octave, Win7, gnuplot 4.6.6)

results attached

(file #33323, file #33324)

Avinoam Kalma <avinoam>
Project Member
Thu 12 Mar 2015 01:41:56 AM UTC, comment #7:

Does not work for me still, Windows XP, Octave 4.0.0-rc1, Gnuplot 4.6.6 built with mxe-octave. Are you sure you're using the gnuplot toolkit when testing?

Mike Miller <mtmiller>
Project Administrator
Wed 11 Mar 2015 07:31:51 PM UTC, comment #6:

It seems to work now.

Avinoam Kalma <avinoam>
Project Member
Thu 05 Feb 2015 05:57:06 AM UTC, comment #5:

I can confirm that the "rotation" property does not work with text objects using gnuplot with the windows terminal. This includes axis labels, which are also text objects.

Specifically, the following works perfectly with the fltk and qt toolkits, but not gnuplot:

The value of the property is correct, but gnuplot does not draw it rotated.

Mike Miller <mtmiller>
Project Administrator
Fri 12 Sep 2014 07:36:45 AM UTC, comment #4:

The workaround mentiones by Jonas helps for "single" plots, like
plot([1:10]); ylabel('test');

But, I am still facing this bug in subplots, which is pretty annoying.

I am using Octave 3.8.2 on Win 7.

Anything I can do to solve this?

Thu 15 May 2014 03:53:10 PM UTC, comment #3:

I have experienced the same problem.
But the y-label is set correctly as soon as I enable the Oversampling option in the plot window. (Make permanent with Options->Update .../wgnuplot.ini) The Double Buffer Option seems to have an influence too.

I do not currently see what Gnuplot terminal is being used, since getenv('GNUTERM') does not yield anything.
Is this a Gnuplot bug?

Octave 3.8.1 from Untouched MXE Builds (April 28th 2014) with Gnuplot Version 4.6 patchlevel 4 on Windows.

Jonas Hagen <jonashagen>
Tue 15 Oct 2013 06:51:25 PM UTC, comment #2:

The gnuplot in MXE build is "Version 4.6 patchlevel 1".

The gnuplot in Michael's 3.7.2+ MSVC snapshot (that isn't affected by this bug) is "Version 4.4 patchlevel 4".

In the newest mxe it is still 4.6.1.

Philip Nienhuis <philipnienhuis>
Project Member
Tue 15 Oct 2013 04:31:54 PM UTC, comment #1:

Is it possible that there is a difference in gnuplot versions between the mingw and Linux machines?

Code does work correctly on a Linux machine with gnuplot 4.6.2.

Rik <rik5>
Project Administrator
Mon 14 Oct 2013 06:57:16 PM UTC, original submission:

ylabel isn't rotated parallel to y-axis - see attached plot.

I see this bug only on mingw (MXE) native & cross-compiled development versions.
(oldest mingw version here that shows this bug is 3.7.5 from mid-July)

This works OK on my Linux box, and with Michael's Octave-3.7.2 MSVC snapshot binary, and on 3.6.4.
(Probably also a regression)

To reproduce:

graphics_toolkit gnuplot
plot ([0:1])
title ("title") ## not needed
xlabel ("xlabel") ## not needed
ylabel ("ylabel")

Philip Nienhuis <philipnienhuis>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #36629:  tst1.png added by None (3KiB - image/png - before and after setting gnuplot options)
file #36630:  tst2.png added by None (12KiB - image/png - before and after setting gnuplot options)
file #33329:  gnuplot-rotate-win.png added by mtmiller (12KiB - image/png)
file #33323:  a.png added by avinoam (17KiB - image/png)
file #33324:  b.png added by avinoam (10KiB - image/png)
file #29375:  gp_ylabel.png added by philipnienhuis (9KiB - image/png)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by jonashagen (Posted a comment)
  • -email is unavailable- added by philipnienhuis (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-10-23 mtmiller StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2016-03-14 None Attached File- => Added tst1.png, #36629
        Attached File- => Added tst2.png, #36630
    2015-03-13 avinoam Attached File- => Added gnuplot-rotate-win7.jpg.png, #33331
    2015-03-13 mtmiller Attached File- => Added gnuplot-rotate-win.png, #33329
    2015-03-12 avinoam Attached File- => Added a.png, #33323
        Attached File- => Added b.png, #33324
    2015-02-22 mtmiller Summarygnuplot - ylabel is not rotated parallel to Y-axis => Gnuplot windows terminal: ylabel is not rotated parallel to y-axis
    2015-02-05 mtmiller StatusNone => Confirmed
    2014-09-23 rik5 Carbon-CopyRemoved 72865 => -
    2013-10-14 philipnienhuis Attached File- => Added gp_ylabel.png, #29375

    Back to the top

    Powered by Savane 3.3