[Tioga-users] multiple figures in one class: only the first works

Sergey Astanin astanin at calvino.polito.it
Tue Dec 12 07:14:02 EST 2006


Good day to everyone!

I am a new Tioga user, and I am trying to write a class with multiple
figures (all plots use the same data). I use a derived batch class as
suggested in the tutorial for plotting. I noticed that while there is only
one figure per class, it works well, but when there are two figures,
t.make_preview_pdf(name) always makes the first one, no matter what figure
name is supplied.

For example, I attach to this message a script test.rb with TestPlots and
TestPlotsBatch classes. The former contains two t.def_figure() calls and
debug printing, the latter should make preview of all figures. However,
when I run it I see that

$ ruby test.rb

Make Blue.pdf
DEBUG: plot_blue
cd figures_out; pdflatex -interaction nonstopmode Blue.tex > pdflatex.log

Make Red.pdf
DEBUG: plot_blue
cd figures_out; pdflatex -interaction nonstopmode Blue.tex > pdflatex.log

What am I doing wrong? How I should define/use multiple figures? I am
using tioga 1.2.1 in Linux.

Best regards,
Sergey Astanin.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.rb
Type: application/x-ruby
Size: 755 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/tioga-users/attachments/20061212/36296ebc/attachment.bin 


More information about the Tioga-users mailing list