#34 y1axis dominates the plot (lin/log) bound to y2axis

closed
nobody
None
6
2010-09-23
2010-09-03
No

First: Thanks to all, spending your time to GLE, great work.
The Problem is urgent and critical:
following example should give a cross:
--------------------
size 8.0 6.0

begin graph
scale auto
let d1=exp(x)
let d2=30-5*x
xtitle "linear"
ytitle "logarithmic"
y2title "linear"
xaxis lin min 0 max 6
y1axis log min 1 max 400
y2axis lin min 1 max 30
key pos tr compact offset 0.2 2.2 hei 0.2
d1 line marker dot mscale 0.6 color black key "log plot"
d2 line y2axis marker plus mscale 0.6 color black key "lin plot"
xticks length -0.1
end graph
-------------------------------
The exponential line is bound to logarithmical left axis and gives a linear in the plot, which is correct.
The linear line is bound to linear right axis and gives a curve, which is wrong.
If both plot change the side again the left axis dominates the plot bound to the right axis.
An additional effect can be seen if one try to set:
y2axis lin min 0 max 30
which leads to an error.

I tried in all direction and finally decided this to be a bug.
I you find a way to turn the lines to cross in the centre and also get the y2axis starts at 0 without a new built I possibly did something wrong ;)

regards
friwit

Discussion

  • Holger Wittkopf

    Holger Wittkopf - 2010-09-03

    The example result on my system.

     
  • Holger Wittkopf

    Holger Wittkopf - 2010-09-03
    • summary: y1axis dominates the axis --> y1axis dominates the plot (lin/log) bound to y2axis
     
  • Holger Wittkopf

    Holger Wittkopf - 2010-09-03
    • priority: 5 --> 6
     
  • Holger Wittkopf

    Holger Wittkopf - 2010-09-03

    In addition. It is not the cross that is urgent, but the data I originally wanted to present. The cross was just the best example I could find.

     
  • Jan Struyf

    Jan Struyf - 2010-09-21

    This is indeed a significant bug. It appears to be impossible to have a log and linear graph on one plot. I'll fix it ASAP. I'm sorry for not responding earlier.

    As a workaround, you can separate it in two graph blocks that are drawn on top of each other. That is, the following script should give what you want:

    size 8.0 7.0

    begin graph
    let d1=exp(x)
    xtitle "linear"
    ytitle "logarithmic"
    xaxis lin min 0 max 6
    yaxis log min 1 max 400
    y2axis off
    d1 line marker dot mscale 0.6 color black
    end graph

    begin graph
    let d1=exp(x)
    let d2=30-5*x
    y2title "linear"
    xaxis lin min 0 max 6
    y2axis lin min 1 max 30
    y1axis off
    x1axis off
    x2axis off
    y2axis on
    d2 line y2axis marker plus mscale 0.6 color black
    end graph

     
  • Jan Struyf

    Jan Struyf - 2010-09-23
    • status: open --> closed
     
  • Jan Struyf

    Jan Struyf - 2010-09-23

    This bug is fixed in 4.2.3 snapshot 4.2.3f-S092210.

    This snapshot is available at:
    <http://www.gle-graphics.org/cvs.html>

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks