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 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)

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 Member
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>
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 Member
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>
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 Member
Wed 11 Mar 2015 07:31:51 PM UTC, comment #6:

It seems to work now.

Avinoam Kalma <avinoam>
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 Member
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?

Anonymous
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 File(s):
   
   
Comment:
   

Attached Files
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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 13 Mar 2015 06:54:09 AM UTCavinoamAttached File-=>Added gnuplot-rotate-win7.jpg.png, #33331
    Fri 13 Mar 2015 02:32:57 AM UTCmtmillerAttached File-=>Added gnuplot-rotate-win.png, #33329
    Thu 12 Mar 2015 09:35:01 PM UTCavinoamAttached File-=>Added a.png, #33323
      Attached File-=>Added b.png, #33324
    Sun 22 Feb 2015 05:57:28 PM UTCmtmillerSummarygnuplot - ylabel is not rotated parallel to Y-axis=>Gnuplot windows terminal: ylabel is not rotated parallel to y-axis
    Thu 05 Feb 2015 05:57:06 AM UTCmtmillerStatusNone=>Confirmed
    Tue 23 Sep 2014 04:26:42 AM UTCrik5Carbon-CopyRemoved 72865=>-
    Mon 14 Oct 2013 06:57:16 PM UTCphilipnienhuisAttached File-=>Added gp_ylabel.png, #29375

    Back to the top


    Powered by Savane 3.1-cleanup