[scilab-Users] Re: Re: plotting two y-axes, lines and bars in one plot

Eric Dubois grocer.toolbox at gmail.com
Mon Sep 1 21:29:54 CEST 2008


You cannot easily draw with pltseries0 the axis on the upper frame while
reversing the series. I think it can nevertheless be done with Scilab
graphics, since with Scilab function drawaxis, you can choose the location
of the axis. Perhaps someone in Scilab team can provide hints on how to do
that easily.

With respect to the dates, they can be entered as the 4th option in
pltseries0. For instance:
--> pltseries0([mat(:,2),mat(:,3)],[],'example',['Jan83' 'Feb83' 'Mar83'
'Apr83'],1,"yaxis=[1 2]", "bars=[0 1]","reverse=
 0 1]')

Note that the x-ticks are passed in pltseries0 to drawaxis trough the option
'val=xscale0' where xscale0 ['Jan83' 'Feb83' 'Mar83' 'Apr83'] and this how
you can manage non-standard axes.

Hope it will help.

Eric.

2008/9/1 Simon <simon.elfert at web.de>

> alright, now the redefining works! (thank you very much for your
> explanation!)
>
> I guess, I did not figure out my problem the right way... sorry! Aim is
> something like the appended png-file... (even if I don't like that the two
> upper 'axes' (or subplots) are divided from each other... I built that one
> with matplotlib in python).
>
> In words: The bars should be plotted downwards from the upper frame line as
> basis (0). The reversing of the second y-axis is done easily now with your
> new function, but still the x-axis is taken as basis and the bars show up.
>
> Another problem occured, when I tried to combine some fewer insights in
> scilab-plotting to pltseries0. Like you see on the example-file, the x-ticks
> should be dates in the end (For some applications just years, but sometimes
> also dates like 'Jan. 1983' - till now I built them with datenum and
> datevec, respectively). You mentioned a way to handle dates with drawaxis in
> an earlier thread.  Is it possible to combine that with pltseries0?
>
> Sorry for all these special demands - I'm just trying to figure out if
> scilab may be a suitable tool for me and my work.
>
> Greetings,
> Simon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20080901/8a546f88/attachment.htm>


More information about the users mailing list