bugGNU Octave - Bugs: bug #45167, Spy with gnuplot: wrong axis...

 
 

bug #45167: Spy with gnuplot: wrong axis orientation (upside down) with gnuplot 5

Submitter:  Francois-Henry Rouet <fhrouet>
Submitted:  Fri 22 May 2015 07:29:52 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  3 - Low Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 23 May 2015 12:23:34 PM UTC, comment #3: 

Thanks for pointing to your original bug report, let's close this as a duplicate and move discussion to bug #38914.

Mike Miller <mtmiller>
Group Member
Sat 23 May 2015 06:20:59 AM UTC, comment #2: 

From the gnuplot help:


 The `reverse` option reverses the direction of an autoscaled axis. For example,
 if the data values range from 10 to 100, it will autoscale to the equivalent of
 set xrange [100:10].  The `reverse` flag has no effect if the axis is not
 autoscaled. NB: This is a change introduced in version 4.7.


The new syntax is to simply place the limits in opposite order.  So I replaced


set xrange [0.000000000000000e+00:4.000000000000000e+00] noreverse;
set yrange [0.000000000000000e+00:4.000000000000000e+00] reverse;


with


set xrange [0.000000000000000e+00:4.000000000000000e+00];
set yrange [4.000000000000000e+00:0.000000000000000e+00];


and obtained the proper plot.

I set about fixing this then discovered I already made a changeset, attached here:

https://savannah.gnu.org/bugs/?38914

BTW, just curious if you think the axes would look better for this plot if the x-axis were at the top of the plot rather than at the bottom.  If I were to illustrate the indices of a matrix, I think that's how I would do it:


  1  2  3  4  5  6 ...
1

2

3

4

...


Dan Sebald <sebald>
Sat 23 May 2015 03:30:05 AM UTC, comment #1: 

Thanks for your bug report. Confirmed on Debian with gnuplot 5 as well, works correctly as before with gnuplot 4.6.6.

Mike Miller <mtmiller>
Group Member
Fri 22 May 2015 07:29:52 PM UTC, original submission:  

OS: Arch Linux
Octave version: 3.8.1
gnuplot version: 5.0.0

"Spy" with gnuplot shows the matrix upside-down (last row on top, first row at bottom). The problem doesn't show up with fltk. It seems to be due to the interaction with gnuplot. With gnuplot version 4.6.6, the plot is correct.

Example:

octave:1> A=sparse(tril(ones(3,3)))
A =

Compressed Column Sparse (rows = 3, cols = 3, nnz = 6 [67%])

  (1, 1) ->  1
  (2, 1) ->  1
  (3, 1) ->  1
  (2, 2) ->  1
  (3, 2) ->  1
  (3, 3) ->  1

octave:2> full(A)
ans =

   1   0   0
   1   1   0
   1   1   1

octave:3> spy(A)
[shows the following:
   *  *  *
   *  *
   *
cf. screenshot]




Francois-Henry Rouet <fhrouet>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sebald (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by fhrouet (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 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-05-23 mtmiller StatusConfirmed Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #38914
    2015-05-23 mtmiller Release3.8.2 dev
        SummarySpy with gnuplot: wrong axis orientation (upside down) Spy with gnuplot: wrong axis orientation (upside down) with gnuplot 5
    2015-05-23 mtmiller Priority5 - Normal 3 - Low
        Item GroupNone Incorrect Result
        StatusNone Confirmed
    2015-05-22 fhrouet Attached File- Added Screenshot from 2015-05-22 12-31-04.png, #34081

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code