Menu

Axis labels/Log colorbar

Help
Anonymous
2010-03-30
2012-10-16
  • Anonymous

    Anonymous - 2010-03-30

    I noticed multi-line labels are now added. How does one create a multiline
    label? I tried \n, \\, and \n.

    Is there a way to tick/label a log colorbar as nicely as the axes are ticked
    logarithmically? When I create a log colorbar (SetFunc ("", "", "", "lg(c)")),
    the labels/ticks are still linear looking.

    BTW, is a new PDF of documentation generated automatically when you release a
    new version?

    Small bug report:

    In the semi-log example, with the latest SVN version (30/03/10), the y label
    is no longer showing! If you change the Y label position to 1 or -1, you see
    the label at the top and bottom of the axis. With 0, there is no label.

    Feature request:

    GNUplot and Qwt offer left and right triangle as possible symbols. I think it
    would be nice, and probably not terribly difficult, to add. Maybe < and > for
    the symbols?

    Thanks for all your help!
    Joey

     
  • Alexey Balakin

    Alexey Balakin - 2010-03-30
    1. Use \n character (the combination \n is also applicable for C/C++) -- for example "aaa\nbbb". Unfortunately it seems this work with Puts() and Putsw() only -- with Label() it produce incorrect shifting :( -- try to correct shortly.

    2. Use additionally SetTicks('c',0); -- the same as for usual axis.

    3. The documentation is always generated automatically ...But its version number must be updated by hand and some times I forgot it :(

    4. I'll check the bug and try to fix it shortly :).

    5. Do you mean to add this as mark for curves? I'll add it. Right now you can use TextMark() with TeX symbol "\triangleright" and "\triangleleft".

     
  • Anonymous

    Anonymous - 2010-03-30

    1) Ok, I was only using Label and did not try Puts. I can wait for the fixes.

    2) I have a SetTicks ('c', 0); but what I am really wanting is a way to
    control the formatting of the tick labels as well as the nice logarithmic
    ticks along the color bar. I'm not sure how it decides how to format the
    labels for the color bar compared to an axis. It seems like they should be the
    same. I might just be being picky! :) I really just want the major decades
    labelled like they are for the y-axis.

    Also, on the color bar - if I have something on the right axis and a color
    bar, they overwrite one another. To fix this, should I play with SubPlot or
    there an easier way? That was next on my list to learn.

    5) Yes, I meant with the curves.

    Cheers,
    Joey

     
  • Alexey Balakin

    Alexey Balakin - 2010-04-07

    2) As I remember colorbar ticks are almost the same as axis ticks (except
    manual ticks). Colorbar have no subticks because I think it is useless (hide
    colorbar itself).

    About overlapping. Yes it can be and right now you can use InPlot() only
    --like gr->Colorbar(); gr->InPlot(0,0.9,0,1,true); gr->Axis();

    However I plan to introduce "layouts" for next version which do this
    automatically.

     

Log in to post a comment.