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 Oct 14 18:57:16 2013  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Philip NienhuisOpen/Closed: Open
Release: devOperating System: Microsoft Windows

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Mon Mar 14 10:32:51 2016, 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)

Anonymous
Fri Mar 13 13:47:42 2015, 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 Mar 13 06:54:09 2015, 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 Mar 13 02:32:57 2015, 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 Mar 12 21:35:01 2015, 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 Mar 12 01:41:56 2015, 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 Mar 11 19:31:51 2015, comment #6:

It seems to work now.

Avinoam Kalma <avinoam>
Project Member
Thu Feb 5 05:57:06 2015, 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 Sep 12 07:36:45 2014, 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?

Anonymous
Thu May 15 15:53:10 2014, 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 Oct 15 18:51:25 2013, 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 Oct 15 16:31:54 2013, 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 Oct 14 18:57:16 2013, 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 File(s):
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Mar 14 10:32:51 2016NoneAttached File-=>Added tst1.png, #36629
      Attached File-=>Added tst2.png, #36630
    Fri Mar 13 06:54:09 2015avinoamAttached File-=>Added gnuplot-rotate-win7.jpg.png, #33331
    Fri Mar 13 02:32:57 2015mtmillerAttached File-=>Added gnuplot-rotate-win.png, #33329
    Thu Mar 12 21:35:01 2015avinoamAttached File-=>Added a.png, #33323
      Attached File-=>Added b.png, #33324
    Sun Feb 22 17:57:28 2015mtmillerSummarygnuplot - ylabel is not rotated parallel to Y-axis=>Gnuplot windows terminal: ylabel is not rotated parallel to y-axis
    Thu Feb 5 05:57:06 2015mtmillerStatusNone=>Confirmed
    Tue Sep 23 04:26:42 2014rik5Carbon-CopyRemoved 72865=>-
    Mon Oct 14 18:57:16 2013philipnienhuisAttached File-=>Added gp_ylabel.png, #29375

    Back to the top


    Powered by Savane 3.1-cleanup