From nomo17k at gmail.com Mon Sep 10 21:49:06 2007 From: nomo17k at gmail.com (Taro Sato) Date: Tue, 11 Sep 2007 01:49:06 +0000 Subject: [Tioga-users] converting to PNG? Message-ID: (I'm sorry I've already asked this to Bill) Does anyone out there know a good (command-line) tool to do the PDF -> PNG conversion? Vincent might know, since Ctioga web site has a lot of nicely anti-aliased PNG images presumably converted from PDF directly? I'm preparing tutorials/references for the python version now, to be put on the web soon... Thanks!! Taro From fourmond at gmail.com Tue Sep 11 02:53:53 2007 From: fourmond at gmail.com (Vincent Fourmond) Date: Tue, 11 Sep 2007 08:53:53 +0200 Subject: [Tioga-users] converting to PNG? In-Reply-To: References: Message-ID: <2e474d6f0709102353w7372d034k4f26fcd3cc5c725a@mail.gmail.com> On 9/11/07, Taro Sato wrote: > (I'm sorry I've already asked this to Bill) > > Does anyone out there know a good (command-line) tool to do the PDF -> > PNG conversion? Vincent might know, since Ctioga web site has a lot > of nicely anti-aliased PNG images presumably converted from PDF > directly? convert, from ImageMagick. To get nice antialiasing, I cheat with something in the spirit of convert -density 250 -resize 700x700 image.pdf image.png The -density option forces a rasterization of the PDF at 250 dpi; the -resize makes sure it fits into 700x700, and scaling does anti-aliasing too. Cheers, Vincent From astanin at calvino.polito.it Tue Sep 11 04:34:39 2007 From: astanin at calvino.polito.it (Sergey Astanin) Date: Tue, 11 Sep 2007 10:34:39 +0200 Subject: [Tioga-users] converting to PNG? In-Reply-To: References: Message-ID: <20070911103439.268ec510@localhost.localdomain> Tue, 11 Sep 2007 01:49:06 +0000, "Taro Sato" : > (I'm sorry I've already asked this to Bill) > > Does anyone out there know a good (command-line) tool to do the PDF -> > PNG conversion? Vincent might know, since Ctioga web site has a lot > of nicely anti-aliased PNG images presumably converted from PDF > directly? > > I'm preparing tutorials/references for the python version now, to be > put on the web soon... I use `convert' tool from ImageMagick to convert tioga-generated PDFs to raster web formats, e.g. $ convert -quality 90 -density 128 -crop 640x480+0+80 file.pdf file.jpg The same for PNG or anything, just change the extension of the output file. You might wish to play with -density and -crop parameters to adjust them according to your needs. -- Sergey Astanin E-mail: sergey.astanin at polito.it GoogleTalk/Jabber: s.astanin at gmail.com Tel.: +39 011 564 7558 Dipartimento di Matematica Politecnico di Torino From fourmond at gmail.com Tue Sep 11 05:04:25 2007 From: fourmond at gmail.com (Vincent Fourmond) Date: Tue, 11 Sep 2007 11:04:25 +0200 Subject: [Tioga-users] converting to PNG? In-Reply-To: <20070911103439.268ec510@localhost.localdomain> References: <20070911103439.268ec510@localhost.localdomain> Message-ID: <2e474d6f0709110204g7866d104w39180cc931f70f55@mail.gmail.com> On 9/11/07, Sergey Astanin wrote: > $ convert -quality 90 -density 128 -crop 640x480+0+80 file.pdf file.jpg > > The same for PNG or anything, just change the extension of the output > file. You might wish to play with -density and -crop parameters > to adjust them according to your needs. And I forgot to mention -trim to shave the picture so no white space is left on the side. Cheers, Vincent From rubisher at scarlet.be Tue Sep 11 14:34:19 2007 From: rubisher at scarlet.be (rubisher) Date: Tue, 11 Sep 2007 18:34:19 +0000 Subject: [Tioga-users] Is there some where some example with time as axis? Message-ID: <46E6DFAB.7060206@scarlet.be> Hello *, I manage some AIX boxes on which I can collect performance data with a tool named nmon which produce csv data files. With ruby it's quiet easy to split this file in sub-data file related to different topics like CPU, DISK, Mem, ... and even compute average, weighted average, ... to produce plots. For the moment, I reach to produce some ps plots with ploticus but it didn't give me enough control on the results as could do Tioga (as far as your kind tutorial let me foreseen) as producing a daily pdf book which I can make available for management. Unfortunately I didn't find any example using time as axis. Don't you have some example of this kind or isn't it yet intregrated in this project? Tia, r. PS: some typical time stamp I used are: CPU_ALL,CPU Total ari0woo0,User%,Sys%,Wait%,Idle%,Busy,PhysicalCPUs ZZZZ,T0001,00:00:14,13-APR-2007 CPU_ALL,T0001,0.0,0.0,0.0,100.0,,0.00 ZZZZ,T0002,00:05:14,13-APR-2007 CPU_ALL,T0002,0.8,0.6,1.6,97.1,,4.00 ... (could cover some hours, a day, a week, ...) From fourmond at gmail.com Wed Sep 12 14:43:33 2007 From: fourmond at gmail.com (Vincent Fourmond) Date: Wed, 12 Sep 2007 20:43:33 +0200 Subject: [Tioga-users] Is there some where some example with time as axis? In-Reply-To: <46E6DFAB.7060206@scarlet.be> References: <46E6DFAB.7060206@scarlet.be> Message-ID: <46E83355.1020702@gmail.com> Hello ! rubisher wrote: > I manage some AIX boxes on which I can collect performance data with a tool named nmon which produce csv data files. > > With ruby it's quiet easy to split this file in sub-data file related to different topics like CPU, DISK, Mem, ... and even > compute average, weighted average, ... to produce plots. > > For the moment, I reach to produce some ps plots with ploticus but it didn't give me enough control on the results as could > do Tioga (as far as your kind tutorial let me foreseen) as producing a daily pdf book which I can make available for > management. Unfortunately I didn't find any example using time as axis. Don't you have some example of this kind or isn't it > yet intregrated in this project? If I understand you right, you want to make a plot where the X (or Y) axis would be, say, a date like 11/04/06 11:40. That is possible although currently a bit cumbersome with the way Tioga deals with tick labels. You need to convert date/time data into floats and prepare yourself tick labels (and tick position) with yaxis_locations_for_major_ticks and yaxis_tick_labels (see the function special_y in samples/plots/plots.rb). However, we were recently discussing a more powerful way to make ticks label that would make it nearly painless (next release). Hope you'll find Tioga suitable, cheers ! Vincent From rubisher at scarlet.be Wed Sep 12 16:34:12 2007 From: rubisher at scarlet.be (rubisher) Date: Wed, 12 Sep 2007 20:34:12 +0000 Subject: [Tioga-users] Is there some where some example with time as axis? In-Reply-To: <46E83355.1020702@gmail.com> References: <46E6DFAB.7060206@scarlet.be> <46E83355.1020702@gmail.com> Message-ID: <46E84D44.3040606@scarlet.be> Vincent Fourmond wrote: > Hello ! > > rubisher wrote: >> I manage some AIX boxes on which I can collect performance data with a tool named nmon which produce csv data files. >> >> With ruby it's quiet easy to split this file in sub-data file related to different topics like CPU, DISK, Mem, ... and even >> compute average, weighted average, ... to produce plots. >> >> For the moment, I reach to produce some ps plots with ploticus but it didn't give me enough control on the results as could >> do Tioga (as far as your kind tutorial let me foreseen) as producing a daily pdf book which I can make available for >> management. Unfortunately I didn't find any example using time as axis. Don't you have some example of this kind or isn't it >> yet intregrated in this project? > > If I understand you right, you want to make a plot where the X (or Y) > axis would be, say, a date like 11/04/06 11:40. Right ;-) > That is possible > although currently a bit cumbersome with the way Tioga deals with tick > labels. You need to convert date/time data into floats and prepare > yourself tick labels (and tick position) with > yaxis_locations_for_major_ticks > and > yaxis_tick_labels (see the function special_y in samples/plots/plots.rb). > Ok I will investigate that first, ... > However, we were recently discussing a more powerful way to make ticks > label that would make it nearly painless (next release). > awaiting this new release. (anyway that would learn me a lot ;-) ) > Hope you'll find Tioga suitable, cheers ! > > Vincent > > Tx, r.