From: Mario Rodriguez <biomates at telefonica.net>
El mar, 03-09-2013 a las 20:36 +0000, Leo Butler escribi?:
> Sorry, Mario, these two examples use yaxis_secondary, but they do not
> set the label on that axis.
Excuse me, I didn't read your post carefully. You are right, there isn't
such an option in package draw. At this moment, you have to use
user_preamble.
No worries.
> Yes, I noticed that information about the available terminals is in
> the body of a couple different functions. I wonder if that code could
> be put in a hash-table, and some work done by dispatching on the hash
> key, rather than in a big cond statement as at present?
Time ago I started to change how options are processed in draw. I
stopped working on these changes when I started writing the Vtk
interface, and as a result not all options are handled the same way.
It's in my todo list to finish this coding process sooner or later, and
suggestions are welcome.
As a collateral effect, I also wanted to reduce the number of options,
but enriching the syntax of their values. For example, instead of having
five different options: xlabel, ylabel, zlabel, x2label, and y2label,
the proposal is to define only one (easier to remember), say
axes_labels = [['x, "time"], ['y, "space (m)"], ['y2, "space (inch)"]]
or something like that, which should be equivalent to
xlabel = "time",
ylabel = "space (m)",
y2label = "space (inch)"
First, let me admit that I use gnuplot directly and I use both draw in
Maxima and the Octave's plotting facilities as frontends to gnuplot.
Of late, I have found the need to generate the gnuplot code from
either Maxima or Octave and then hand edit the gnuplot code to get the
final graphs to my liking. This is largely driven by my choice of
terminal (cairolatex pdf), but also because beyond some threshold I
find it impossible to remember all of the myriad options for the
frontends.
My preference is to have the frontend behave as a frontend, with
options and names that are similar.
Let me say, though, that I *really* do like the abstraction layer
provided in Octave, where you can have multiple figures and add things
to a figure without having to start over. This is quite useful in
generating plots with labels, arrows, etc. that are added
interactively. Draw provides part of this layer, but one cannot add
things without starting over, and adding things interactively is not
possible (I believe).
One last thing: while your documentation page is great, it would be
really nice if it were possible to annotate ('tag') it, because the
examples often provide solutions to more than one question.
Regards,
Leo