bugGNU Octave - Bugs: bug #46409, setting AxisLocation for pcolor

 
 

bug #46409: setting AxisLocation for pcolor

Submitter:  ederag <ederag>
Submitted:  Mon 09 Nov 2015 08:25:41 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 28 Feb 2016 04:21:38 PM UTC, comment #6: 

Confirmed.  I tested with gnuplot 5.0.1 and 4.6.6 and see the same results.

Rik <rik5>
Group administrator
Wed 11 Nov 2015 09:18:46 AM UTC, comment #5: 

So it ought to work. But it doesn't right now when inserted in the debug file, attached.

(file #35433)

ederag <ederag>
Tue 10 Nov 2015 09:55:52 PM UTC, comment #4: 

A related feature request on the gnuplot bug tracker
https://sourceforge.net/p/gnuplot/feature-requests/356/

ederag <ederag>
Tue 10 Nov 2015 08:49:52 PM UTC, comment #3: 

For gnuplot-4.6.6 a second y-axis is not possible:

p.170: "splot provides only a single x, y, and z axis; there is no equivalent to the x2 and y2 secondary axes provided
by plot."

For gnuplot-5.0.1 this is less clear. The sentence is still in the doc.

But adding "set link x" (cf. gnuplot 5.0 doc, p.135) to the commands removes the error, but the tic labels are not drawn.
This is understandable since the y2 mimics the y, which is not set. The y2 commands are probably ignored.

ederag <ederag>
Mon 09 Nov 2015 08:53:51 PM UTC, comment #2: 

Well... With gnuplot-4.6.6 there is no error, but the ticks and labels disappear...

ederag <ederag>
Mon 09 Nov 2015 08:48:17 PM UTC, comment #1: 

This happens with gnuplot 5.0.1.
With gnuplot 4.6.6 it works fine.

Maybe it is related to
http://stackoverflow.com/a/26737333/3565696

ederag <ederag>
Mon 09 Nov 2015 08:25:41 PM UTC, original submission:  

Trying to set the AxisLocation for a "3D" plot like pcolor fails with gnuplot:


graphics_toolkit("gnuplot")
clf
pcolor(rand(10))
set(gca, "YAxisLocation", "right")

line 0: Secondary axis must be linked to primary axis in order to draw tics


gnuplot> �e��?
           ^
         line 0: invalid character
...


The error message comes from the gnuplot's ./src/plot3d.c:
"""
        if ((axis_array[SECOND_X_AXIS].ticmode && !axis_array[SECOND_X_AXIS].linked_to_primary)
        ||  (axis_array[SECOND_Y_AXIS].ticmode && !axis_array[SECOND_Y_AXIS].linked_to_primary))
            int_error(NO_CARET,
                "Secondary axis must be linked to primary axis in order to draw tics");
    }

    eval_3dplots();
"""

ederag <ederag>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #35433:  octave-print-commands.log added by ederag (9KiB - text/x-log - gnuplot file, with inserted set link)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by ederag (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-28 rik5 StatusNone Confirmed
    2015-11-11 ederag Attached File- Added octave-print-commands.log, #35433

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code