|
From: <rhu...@ih...> - 2010-09-30 03:38:09
|
Thanks again. I noticed that when I added tc rgb "gray50" that I had to move the notitle to be after labels. labels not left rot by -90 off tc rgb "gray50" On Wed, 29 Sep 2010 02:19:40 -0700 (PDT) Thomas Sefzick <t.s...@fz...> wrote: > > plot the labels in two groups: > > ... > '' u (($0-1)-0.1):($12<20000?$12:0/0):12 w labels left rot by -90 offset > graph 0,0.04 not, \ > '' u (($0-1)-0.1):($12<20000?0/0:$12):12 w labels left rot by -90 not, \ > ... > > > rhubbell wrote: > > > > > > In a previous post I was adding the underlying y-values as labels to the > > bars. For some bars that were shorter I want to change the label offset. > > > > I tried some things and none worked, is it possible to change the offset > > this way? > > > > poff(t) = sprintf( 'off gr 0,%f',(t < 20000) ? 0.04 : 0.00) > > > > plot 'immigration.dat' using 6:xtic(1) title col, \ > > '' u 12 ti col, '' u 13 ti col, '' u 14 ti col, \ > > '' u (($0-1)-0.3):6:6 w labels left rot by -90 offset graph 0,0.02 > > notitle, \ > > '' u (($0-1)-0.1):12:12 w labels left rot by -90 poff($12) not, \ > > '' u (($0-1)+0.1):13:13 w labels left rot by -90 off gr 0,0.02 not, \ > > '' u (($0-1)+0.3):14:14 w labels left rot by -90 off gr 0,0.02 not > > > > and I tried this > > > > plot 'immigration.dat' using 6:xtic(1) title col, \ > > '' u 12 ti col, '' u 13 ti col, '' u 14 ti col, \ > > '' u (($0-1)-0.3):6:6 w labels left rot by -90 offset graph 0,0.02 > > notitle, \ > > '' u (($0-1)-0.1):12:12 w labels left rot by -90 off gr 0,($12 < 20000) ? > > 0.04 : 0.00) > > not, \ > > '' u (($0-1)+0.1):13:13 w labels left rot by -90 off gr 0,0.02 not, \ > > '' u (($0-1)+0.3):14:14 w labels left rot by -90 off gr 0,0.02 not > > > > I also tried macros and substitutions with no success. > > > > > > gnuplot> show version long > > > > Version 4.4 patchlevel 1 > > <-snip-snip> > > Compile options: > > +READLINE -LIBREADLINE +HISTORY > > -BACKWARDS_COMPATIBILITY +BINARY_DATA > > +GD_PNG +GD_JPEG +GD_TTF +GD_GIF +ANIMATION > > -NOCWDRC +X11 +X11_POLYGON +MULTIBYTE +X11_EXTERNAL +USE_MOUSE > > +HIDDEN3D_QUADTREE > > +DATASTRINGS +HISTOGRAMS +OBJECTS +STRINGVARS +MACROS +IMAGE > > > > -- > > > > > > ------------------------------------------------------------------------------ > > Start uncovering the many advantages of virtual appliances > > and start using them to simplify application deployment and > > accelerate your shift to cloud computing. > > http://p.sf.net/sfu/novell-sfdev2dev > > _______________________________________________ > > gnuplot-info mailing list > > gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > > > > -- > View this message in context: http://old.nabble.com/functions-and-or-macros-and-or-substitutions-tp29829895p29836611.html > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info -- |