From jdrs at physics.ucsb.edu Tue Aug 5 10:52:59 2008 From: jdrs at physics.ucsb.edu (Justin D. R. Steinfadt) Date: Tue, 05 Aug 2008 10:52:59 -0400 Subject: [Tioga-users] Mac Tioga GUI Message-ID: <4898694B.7070305@physics.ucsb.edu> Hey all, I'm trying to use the Mac Tioga GUI. However, when I try to open a Tioga file (something that works when I use 'tioga plotter.rb -p' at the command line) in the GUI it spits out the following Error... ------------------------------------------------------------------------------- >> ERROR: require 'Tioga/maker.rb' failed in Ruby Has Tigoa FigureMaker for Ruby been installed properly? Does IRB_Tioga run okay? no such file to load -- Tioga/tioga.rb Any thoughts? Does it perhaps not know where Tioga is? If not, how do I tell it, there doesn't seem to be an option for this in the Preferences. -Justin From jmaestri at soleranetworks.com Wed Aug 27 17:22:11 2008 From: jmaestri at soleranetworks.com (Jason Maestri) Date: Wed, 27 Aug 2008 15:22:11 -0600 Subject: [Tioga-users] LaTex Source from Tioga? Message-ID: <317f603d0808271422l22a6d2f2p588d07f77201b5fc@mail.gmail.com> Hello all, I am putting together a tool to generate test reports automatically. The reports are written in LaTex, and will have some Tioga-generated plots included. I would rather include the LaTex source from which the pdf plot images were created instead of the pdfs themselves. Is there a way to get the LaTex source of the plots from Tioga? I haven't been able to find anything like that in the documentation. Thank you, Jason Maestri -- Jason C. Maestri Senior Software Engineer Solera Networks Office: 801 623-5192 www.soleranetworks.com See everything. Know everything.(TM) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmaestri at soleranetworks.com Wed Aug 27 22:16:34 2008 From: jmaestri at soleranetworks.com (jmaestri at soleranetworks.com) Date: Thu, 28 Aug 2008 02:16:34 +0000 Subject: [Tioga-users] LaTex Source from Tioga? Message-ID: <292249500-1219889775-cardhu_decombobulator_blackberry.rim.net-314931705-@bxe204.bisx.prod.on.blackberry> I just noticed that you said that Greens.tex includes Greens_figure.pdf. So are you generating the plots directly in PDF, rather than going through PostScript? Thanks --Jason ------Original Message------ From: Bill Paxton To: Jason Maestri Cc: tioga-users at rubyforge.org Sent: Aug 27, 2008 8:05 PM Subject: Re: [Tioga-users] LaTex Source from Tioga? On Aug 27, 2008, at 2:22 PM, Jason Maestri wrote: > Hello all, > I am putting together a tool to generate test reports > automatically. The reports are written in LaTex, and will have > some Tioga-generated plots included. I would rather include the > LaTex source from which the pdf plot images were created instead of > the pdfs themselves. Is there a way to get the LaTex source of the > plots from Tioga? I haven't been able to find anything like that > in the documentation. Hi Jason, I can certainly understand why you wouldn't have found this in the documentation! In your initialization method, where you do t.def_figure for your plots, add the following: t.autocleanup = false This tells Tioga that it shouldn't delete the intermediate files that it creates. For example, in tioga/samples/plots, in plots.rb, after setting autocleanup false, after the "Greens" plot has been created, the "plots_out" directory will contain not just Greens.pdf, but also a bunch of other Greens.* files. The one you want is called Greens.tex. It contains comments along with the LaTex so you have some chance of seeing what it is doing. The Greens.tex file does \includegraphics with the file Greens_figure.pdf to get the plot pdf graphics, and does \input with Greens_figure.txt to get the plot text. You'll also find Greens.aux, Greens.log, and pdflatex.log which are the usual leftovers of running pdflatex. Hope that helps! Cheers, Bill Paxton Sent via BlackBerry by AT&T From jmaestri at soleranetworks.com Wed Aug 27 22:09:49 2008 From: jmaestri at soleranetworks.com (jmaestri at soleranetworks.com) Date: Thu, 28 Aug 2008 02:09:49 +0000 Subject: [Tioga-users] LaTex Source from Tioga? Message-ID: <1386589566-1219889371-cardhu_decombobulator_blackberry.rim.net-240033458-@bxe204.bisx.prod.on.blackberry> That will be perfect, thank you! --Jason ------Original Message------ From: Bill Paxton To: Jason Maestri Cc: tioga-users at rubyforge.org Sent: Aug 27, 2008 8:05 PM Subject: Re: [Tioga-users] LaTex Source from Tioga? On Aug 27, 2008, at 2:22 PM, Jason Maestri wrote: > Hello all, > I am putting together a tool to generate test reports > automatically. The reports are written in LaTex, and will have > some Tioga-generated plots included. I would rather include the > LaTex source from which the pdf plot images were created instead of > the pdfs themselves. Is there a way to get the LaTex source of the > plots from Tioga? I haven't been able to find anything like that > in the documentation. Hi Jason, I can certainly understand why you wouldn't have found this in the documentation! In your initialization method, where you do t.def_figure for your plots, add the following: t.autocleanup = false This tells Tioga that it shouldn't delete the intermediate files that it creates. For example, in tioga/samples/plots, in plots.rb, after setting autocleanup false, after the "Greens" plot has been created, the "plots_out" directory will contain not just Greens.pdf, but also a bunch of other Greens.* files. The one you want is called Greens.tex. It contains comments along with the LaTex so you have some chance of seeing what it is doing. The Greens.tex file does \includegraphics with the file Greens_figure.pdf to get the plot pdf graphics, and does \input with Greens_figure.txt to get the plot text. You'll also find Greens.aux, Greens.log, and pdflatex.log which are the usual leftovers of running pdflatex. Hope that helps! Cheers, Bill Paxton Sent via BlackBerry by AT&T From paxton at kitp.ucsb.edu Wed Aug 27 22:23:19 2008 From: paxton at kitp.ucsb.edu (Bill Paxton) Date: Wed, 27 Aug 2008 19:23:19 -0700 Subject: [Tioga-users] LaTex Source from Tioga? In-Reply-To: <292249500-1219889775-cardhu_decombobulator_blackberry.rim.net-314931705-@bxe204.bisx.prod.on.blackberry> References: <292249500-1219889775-cardhu_decombobulator_blackberry.rim.net-314931705-@bxe204.bisx.prod.on.blackberry> Message-ID: <35B2F59B-80F9-4CCE-A6AB-D71109AFE29E@kitp.ucsb.edu> On Aug 27, 2008, at 7:16 PM, jmaestri at soleranetworks.com wrote: > I just noticed that you said that Greens.tex includes > Greens_figure.pdf. So are you generating the plots directly in PDF, > rather than going through PostScript? That's correct. Tioga produces pdf and tex only. No PostScript option (not that I have anything against PostScript of course!). There have been several rounds of discussions about converting pdf to postscript for folks who have publishers who demand it. I think Tioga-Users should have something if you need to do that. --Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmaestri at soleranetworks.com Wed Aug 27 22:28:18 2008 From: jmaestri at soleranetworks.com (jmaestri at soleranetworks.com) Date: Thu, 28 Aug 2008 02:28:18 +0000 Subject: [Tioga-users] LaTex Source from Tioga? Message-ID: <568371567-1219890479-cardhu_decombobulator_blackberry.rim.net-1605551844-@bxe204.bisx.prod.on.blackberry> Thanks Bill. I can use the PDF, I am just more familiar with PostScript (and given which Bill Paxton you are), I just assumed that the internals of tioga would have used ps. Thanks. --Jason ------Original Message------ From: Bill Paxton To: Jason Maestri Cc: tioga-users at rubyforge.org Sent: Aug 27, 2008 8:23 PM Subject: Re: [Tioga-users] LaTex Source from Tioga? On Aug 27, 2008, at 7:16 PM, jmaestri at soleranetworks.com wrote: I just noticed that you said that Greens.tex includes Greens_figure.pdf. So are you generating the plots directly in PDF, rather than going through PostScript? That's correct. ? Tioga produces pdf and tex only. ? No PostScript option (not that I have anything against PostScript of course!). There have been several rounds of discussions about converting pdf to postscript for folks who have publishers who demand it. ?I think Tioga-Users should have something if you need to do that. --Bill Sent via BlackBerry by AT&T From paxton at kitp.ucsb.edu Wed Aug 27 22:05:29 2008 From: paxton at kitp.ucsb.edu (Bill Paxton) Date: Wed, 27 Aug 2008 19:05:29 -0700 Subject: [Tioga-users] LaTex Source from Tioga? In-Reply-To: <317f603d0808271422l22a6d2f2p588d07f77201b5fc@mail.gmail.com> References: <317f603d0808271422l22a6d2f2p588d07f77201b5fc@mail.gmail.com> Message-ID: On Aug 27, 2008, at 2:22 PM, Jason Maestri wrote: > Hello all, > I am putting together a tool to generate test reports > automatically. The reports are written in LaTex, and will have > some Tioga-generated plots included. I would rather include the > LaTex source from which the pdf plot images were created instead of > the pdfs themselves. Is there a way to get the LaTex source of the > plots from Tioga? I haven't been able to find anything like that > in the documentation. Hi Jason, I can certainly understand why you wouldn't have found this in the documentation! In your initialization method, where you do t.def_figure for your plots, add the following: t.autocleanup = false This tells Tioga that it shouldn't delete the intermediate files that it creates. For example, in tioga/samples/plots, in plots.rb, after setting autocleanup false, after the "Greens" plot has been created, the "plots_out" directory will contain not just Greens.pdf, but also a bunch of other Greens.* files. The one you want is called Greens.tex. It contains comments along with the LaTex so you have some chance of seeing what it is doing. The Greens.tex file does \includegraphics with the file Greens_figure.pdf to get the plot pdf graphics, and does \input with Greens_figure.txt to get the plot text. You'll also find Greens.aux, Greens.log, and pdflatex.log which are the usual leftovers of running pdflatex. Hope that helps! Cheers, Bill Paxton From paxton at kitp.ucsb.edu Sat Aug 30 23:18:40 2008 From: paxton at kitp.ucsb.edu (Bill Paxton) Date: Sat, 30 Aug 2008 20:18:40 -0700 Subject: [Tioga-users] setting a legend background color in tioga Message-ID: <50D424DF-74A8-4522-B04A-A5AE156EE2C3@kitp.ucsb.edu> Hi, How about this -- I'm sending a question to tioga-users instead of answering one! I need to put a background color under a legend that is inside a plot to make it more readable. Now as I recall this isn't too hard to do (I think I may have even told someone how to do it once!). But I can't ever find anything in the archive (is there a reasonable way to search it?), so I'm hoping someone can remind me how the legend background trick is done. ; - ) Then an example needs to be added to the samples/plots file. Thanks, Bill p.s. Here's the way-too-busy plot I'm doing that prompted this question. -------------- next part -------------- A non-text attachment was scrubbed... Name: Internal_Structure.pdf Type: application/pdf Size: 150998 bytes Desc: not available URL: From fourmond at gmail.com Sun Aug 31 09:24:04 2008 From: fourmond at gmail.com (Vincent Fourmond) Date: Sun, 31 Aug 2008 15:24:04 +0200 Subject: [Tioga-users] setting a legend background color in tioga In-Reply-To: <50D424DF-74A8-4522-B04A-A5AE156EE2C3@kitp.ucsb.edu> References: <50D424DF-74A8-4522-B04A-A5AE156EE2C3@kitp.ucsb.edu> Message-ID: <48BA9B74.1060002@gmail.com> [sorry, I meant to reply to the whole list, but only Bill got it. And anyway, this is a slightly better reply than the original one...] Hello, Bill Paxton wrote: > I need to put a background color under a legend that is inside a plot to > make it more readable. > Now as I recall this isn't too hard to do (I think I may have even told > someone how to do it once!). > > But I can't ever find anything in the archive (is there a reasonable way > to search it?), Use the (google) search box on http://tioga.rubyforge.org/FAQ.html ;-) ... > so I'm hoping someone can remind me how the legend background trick is > done. ; - ) > Then an example needs to be added to the samples/plots file. I don't remember a trick about that, to be truthful. The only way I see is to draw the rectangle yourself at the end of the plot function. I've added an example in samples/plots/plots.rb, in the spirit of: def legend_inside_with_background read_data show_model_number t.show_plot_with_legend( 'legend_left_margin' => 0.5, 'legend_top_margin' => 0.3, 'plot_scale' => 1, 'legend_scale' => 1.3, 'plot_right_margin' => 0) { # First, the plot: reds_blues # Then, a background rectangle for the legend t.context do t.fill_color = White t.fill_opacity = 0.7 t.fill_rect(3.2,-0.2, 2.3, 0.5) end } end The result is attached. Of course, it is very crude, but it works and can be readily improved ! For those who keep up-to-date with the latest SVN code, this example will be committed in a few seconds. Cheers, Vincent -- The Librarian was, of course, very much in favour of reading in general, but readers in particular got on his nerves. -- Terry Pratchet, Men at arms Vincent, listening to Cast No Shadow (Oasis) -------------- next part -------------- A non-text attachment was scrubbed... Name: Legend_Inside_with_Background.pdf Type: application/x-pdf Size: 14200 bytes Desc: not available URL: From paxton at kitp.ucsb.edu Sun Aug 31 11:05:15 2008 From: paxton at kitp.ucsb.edu (Bill Paxton) Date: Sun, 31 Aug 2008 08:05:15 -0700 Subject: [Tioga-users] setting a legend background color in tioga In-Reply-To: <48BA9B74.1060002@gmail.com> References: <50D424DF-74A8-4522-B04A-A5AE156EE2C3@kitp.ucsb.edu> <48BA9B74.1060002@gmail.com> Message-ID: <277D416C-0D17-4FB9-A423-AD0482A50224@kitp.ucsb.edu> On Aug 31, 2008, at 6:24 AM, Vincent Fourmond wrote: > I don't remember a trick about that, to be truthful. The only way I > see is to draw the rectangle yourself at the end of the plot function. Hi Vincent, Thanks -- now is there a way to calculate the size and position of the rectangle automatically? Maybe tioga needs a legend_bounding_box routine? Cheers, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: