Menu

#1583 Last axis not plotted in parallel axis plot

None
closed-invalid
nobody
2015-04-21
2015-03-24
Bernardo
No

Hi,

I'm trying to create a parallel plot using Gnuplot Version 5.0 patchlevel 0 but my last axis disappears when I use the option "lc var" in the last line. The same happens if I use "lc palette". The two versions of the script I'm using are:

1) This works, all 4 axis are shown
reset
set terminal svg
set output 'parallel.svg'
set datafile separator ','
unset key
unset ytics
unset border
set xtics nomirror
set xtics ("Phosphorus" 1,"Benefit" 2,"Inertia" 3,"Reliability" 4)
set paxis 1 tics axis nomirror norotate autojustify
set paxis 2 tics axis nomirror norotate autojustify
set paxis 3 tics axis nomirror norotate autojustify
set paxis 4 tics axis nomirror norotate autojustify
plot '4obj_SOW4_ref_scaled.csv' u 1:2:3:4 w parallel lw 2

2) This doesn't work, the last axis is not there, even though there's space for it in the figure.
reset
set terminal svg
set output 'parallel.svg'
set datafile separator ','
unset key
unset ytics
unset border
set xtics nomirror
set xtics ("Phosphorus" 1,"Benefit" 2,"Inertia" 3,"Reliability" 4)
set paxis 1 tics axis nomirror norotate autojustify
set paxis 2 tics axis nomirror norotate autojustify
set paxis 3 tics axis nomirror norotate autojustify
set paxis 4 tics axis nomirror norotate autojustify
plot '4obj_SOW4_ref_scaled.csv' u 1:2:3:4 w parallel lw 2 lc var

I've tried using different terminals but it didn't solve the problem.

Thanks,

Bernardo

1 Attachments

Discussion

  • Bernardo

    Bernardo - 2015-03-24

    I'm sorry, I just realized that this is not a bug. Even though I spent some time trying to figure out why my axis was disappearing I just noticed that I had to include in the "using x:y:z" the number of the axis I wanted the color gradient to be based on. It may help other users if a little bit more detail about this is added on the comments of the demo code or in the pdf documentation.

    Thanks and, again, I'm sorry for reporting something that is not a bug.

     
  • Bernardo

    Bernardo - 2015-03-24
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2015-04-21
    • status: open --> closed-invalid
     

Log in to post a comment.