pyPloticus is a python wrapper for libploticus. On my Mandriva 2009.1 system I
was having trouble with an undefined symbol error after compiling libploticus
2.41 and then installing pyPloticus. It all compiled and installed OK but on
importing the python module from inside the python interpreter I would get and
"undefined symbol PLGG_pixpt" error.
A small change to the ploticus Makefile has fixed this. As Steve says in his
Makefile the shared library part of the Makefile hasn't been tested - well on
Mandriva 2009.1 at least, it now has.
The key changes to Makefile are
1. Select option 5 by commenting out line 28 (option 1) and uncommenting lines
74 to 78.
2. Lines 223 to 226 should look like this
libploticus-static: $(OBJ) api.o gd00files gd16files
$(RMCOM) libploticus.$(LIBEXT)
$(ARCOM) libploticus.$(LIBEXT) $(OBJ) api.o $(GD16) $(GD)
3. Add $(FPIC) to the compilation of gd00files and gd16files
gd00files:
$(CC) $(FPIC) -I./gd13 -I./ -c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c
gdfontt.c
echo "done with gd00files" > gd00files
gd16files:
$(CC) -c $(WALL) $(FPIC) grgd.c -DGD16 -DPLOTICUS -I./ -I./gd16 -o grgd16.o
$(CC) -c $(CFLAGS) $(FPIC) devstuff.c -DGD16 -o devstuff16.o
$(CC) -c $(FPIC) -I./gd16 -I./ $(GD16H) gd16.c gd_io.c gd_io_dp.c gd_io_file.c
gd_png.c
echo "done with gd16files" > gd16files
4. Now "make clean" then "make"
5. Copy your squeaky new libploticus.a file to /usr/lib (or if like me you have
a 64 bit machine then /usr/lib64) but in the process rename the file to
libploticus.so.0.0 (you have actually created a shared library but I think
pyPloticus compilation expects a file with a ".a" extension).
6. Run ldconfig -n /usr/lib (ldconfig -n /usr/lib64 for 64 bitters)
7. You can now go to pyPloticus and first edit the setup.py file changing the
plot_src_path to point to the location of the newly created libploticus.a file
(something like plot_src_path="../pl241src/src/")
8. Run "python setup.py install"
You should now have it all set to go.
Testing
1. Start the python interpreter "python"
2. try to import the ploticus module "import ploticus"
You should get no errors at this point
3. You can now try the pyPloticus examples "python plot.py graph.html"
I get some errors listed but the graph srcc.png still get produced.
Hope this help someone please tell me if you have other errors of if this works
for you.
Thanks! I'll include these notes, and the FPIC Makefile mods in the next
release. -Steve
________________________________________
From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of shlinuxau
[shlinuxau@...]
Sent: Wednesday, July 08, 2009 9:08 AM
To: ploticus@yahoogroups.com
Subject: [ploticus] libploticus compilation and pyPloticus - fixing the
libploticus-so Makefile
pyPloticus is a python wrapper for libploticus. On my Mandriva 2009.1 system I
was having trouble with an undefined symbol error after compiling libploticus
2.41 and then installing pyPloticus. It all compiled and installed OK but on
importing the python module from inside the python interpreter I would get and
"undefined symbol PLGG_pixpt" error.
A small change to the ploticus Makefile has fixed this. As Steve says in his
Makefile the shared library part of the Makefile hasn't been tested - well on
Mandriva 2009.1 at least, it now has.
The key changes to Makefile are
1. Select option 5 by commenting out line 28 (option 1) and uncommenting lines
74 to 78.
2. Lines 223 to 226 should look like this
libploticus-static: $(OBJ) api.o gd00files gd16files
$(RMCOM) libploticus.$(LIBEXT)
$(ARCOM) libploticus.$(LIBEXT) $(OBJ) api.o $(GD16) $(GD)
3. Add $(FPIC) to the compilation of gd00files and gd16files
gd00files:
$(CC) $(FPIC) -I./gd13 -I./ -c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c
gdfontt.c
echo "done with gd00files" > gd00files
gd16files:
$(CC) -c $(WALL) $(FPIC) grgd.c -DGD16 -DPLOTICUS -I./ -I./gd16 -o grgd16.o
$(CC) -c $(CFLAGS) $(FPIC) devstuff.c -DGD16 -o devstuff16.o
$(CC) -c $(FPIC) -I./gd16 -I./ $(GD16H) gd16.c gd_io.c gd_io_dp.c gd_io_file.c
gd_png.c
echo "done with gd16files" > gd16files
4. Now "make clean" then "make"
5. Copy your squeaky new libploticus.a file to /usr/lib (or if like me you have
a 64 bit machine then /usr/lib64) but in the process rename the file to
libploticus.so.0.0 (you have actually created a shared library but I think
pyPloticus compilation expects a file with a ".a" extension).
6. Run ldconfig -n /usr/lib (ldconfig -n /usr/lib64 for 64 bitters)
7. You can now go to pyPloticus and first edit the setup.py file changing the
plot_src_path to point to the location of the newly created libploticus.a file
(something like plot_src_path="../pl241src/src/")
8. Run "python setup.py install"
You should now have it all set to go.
Testing
1. Start the python interpreter "python"
2. try to import the ploticus module "import ploticus"
You should get no errors at this point
3. You can now try the pyPloticus examples "python plot.py graph.html"
I get some errors listed but the graph srcc.png still get produced.
Hope this help someone please tell me if you have other errors of if this works
for you.
I used the second prefab dist example in the handbook as a reference:
http://ploticus.sourceforge.net/doc/prefab_dist_ex.html
and created my own histogram. My labels do not look like those in the
example. Specifically, while the bin labels are written vertically,
the individual
letters are horizontal . In other words my labels look like this:
l
a
b
e
l
Any idea why this would be so and how to fix it? The letters in the
Y-axis label have the same problem. Note that I do not have this
problem if I produce a GIF file -- I only see it if my output is an
X window.
Josh Simons
Hi,
I am using ploticus 2.32 with the lines prefab to graph network bandwidth use.
The numbers involved have many digits, typically 6 or 7. By default ploticus is
not inserting commas into the Y axis stubs, which makes it hard to easily read,
since you have to slow down and count zeros to understand what the chart is
saying.
Is there a way to force ploticus to use commas? Or to make it divide the
numbers it's charting by 1000?
Thanks!
-Travis
Hello Josh,
short answer - you are getting the expected behavior
ploticus uses native x11 fonts, and x11 doesn't support vertical text.
Steve
________________________________________
From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of Joshua
Simons [jsimons@...]
Sent: Thursday, July 23, 2009 5:35 PM
To: ploticus@yahoogroups.com
Subject: [ploticus] Prefab dist question
I used the second prefab dist example in the handbook as a reference:
http://ploticus.sourceforge.net/doc/prefab_dist_ex.html
and created my own histogram. My labels do not look like those in the
example. Specifically, while the bin labels are written vertically,
the individual
letters are horizontal . In other words my labels look like this:
l
a
b
e
l
Any idea why this would be so and how to fix it? The letters in the
Y-axis label have the same problem. Note that I do not have this
problem if I produce a GIF file -- I only see it if my output is an
X window.
Josh Simons
Hi,
i'm looking for a simple way to draw arrays directly in png format. I thought a
"proc array" would exist in Ploticus but i didn't find it. I tried to do it with
"proc bars" but it doesn't go well for variable width of columns based on text
length and other customisable items...
Does anybody have ideas ?
Thanks
dp
Hello,
use something like this: yinc="100 1000"
this should put a stub every 100,000 but show numbers in the 100's (native
value divided by 1000)... you then ould need to label the yaxis by saying eg.
"counts (in thousands)"
http://ploticus.sourceforge.net/doc/prefab_stdparms.html
Steve
________________________________________
From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of
travis_bear [travis_bear@...]
Sent: Thursday, July 23, 2009 7:56 PM
To: ploticus@yahoogroups.com
Subject: [ploticus] Can I force commas in stub numbers?
Hi,
I am using ploticus 2.32 with the lines prefab to graph network bandwidth use.
The numbers involved have many digits, typically 6 or 7. By default ploticus is
not inserting commas into the Y axis stubs, which makes it hard to easily read,
since you have to slow down and count zeros to understand what the chart is
saying.
Is there a way to force ploticus to use commas? Or to make it divide the numbers
it's charting by 1000?
Thanks!
-Travis
Thank you Steve. That was a very useful suggestion. The charts look great now.
-Travis
--- In ploticus@yahoogroups.com, Stephen Grubb <Stephen.Grubb@...> wrote:
>
> Hello,
>
> use something like this: yinc="100 1000"
>
> this should put a stub every 100,000 but show numbers in the 100's (native
value divided by 1000)... you then ould need to label the yaxis by saying eg.
"counts (in thousands)"
>
> http://ploticus.sourceforge.net/doc/prefab_stdparms.html
>
> Steve
>
> ________________________________________
> From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of
travis_bear [travis_bear@...]
> Sent: Thursday, July 23, 2009 7:56 PM
> To: ploticus@yahoogroups.com
> Subject: [ploticus] Can I force commas in stub numbers?
>
> Hi,
>
> I am using ploticus 2.32 with the lines prefab to graph network bandwidth use.
The numbers involved have many digits, typically 6 or 7. By default ploticus is
not inserting commas into the Y axis stubs, which makes it hard to easily read,
since you have to slow down and count zeros to understand what the chart is
saying.
>
> Is there a way to force ploticus to use commas? Or to make it divide the
numbers it's charting by 1000?
>
> Thanks!
>
> -Travis
>
Hello, can you supply an example of an "array plot" (such as a url). I'd like
to know exactly what these are. -Steve
________________________________________
From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of dpa2te
[dpa2te@...]
Sent: Sunday, July 26, 2009 6:15 AM
To: ploticus@yahoogroups.com
Subject: [ploticus] Drawing arrays
Hi,
i'm looking for a simple way to draw arrays directly in png format. I thought a
"proc array" would exist in Ploticus but i didn't find it. I tried to do it with
"proc bars" but it doesn't go well for variable width of columns based on text
length and other customisable items...
Does anybody have ideas ?
Thanks
dp
and created my own histogram. My labels do not look like those in the example. Specifically, while the bin labels are written vertically, the individual letters are horizontal . In other words my labels look like this:
l a b e l
Any idea why this would be so and how to fix it? The letters in the Y-axis label have the same problem. Note that I do not have this problem if I produce a GIF file -- I only see it if my output is an X window.
Hello,
first of all, sorry to be late but I was off for a few days.
Well, the rigth word should be "table" : I would like to draw tables such html
can do but directly in png format whithout having to convert html pages...
dp
--- In ploticus@yahoogroups.com, Stephen Grubb <Stephen.Grubb@...> wrote:
>
> Hello, can you supply an example of an "array plot" (such as a url). I'd like
to know exactly what these are. -Steve
>
> ________________________________________
> From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of dpa2te
[dpa2te@...]
> Sent: Sunday, July 26, 2009 6:15 AM
> To: ploticus@yahoogroups.com
> Subject: [ploticus] Drawing arrays
>
> Hi,
> i'm looking for a simple way to draw arrays directly in png format. I thought
a "proc array" would exist in Ploticus but i didn't find it. I tried to do it
with "proc bars" but it doesn't go well for variable width of columns based on
text length and other customisable items...
> Does anybody have ideas ?
> Thanks
> dp
>
Is there a way (using prefabs) to create a bubble plot which is essentially a
scatterplot in which the plotting symbol diameter or area is proportional to a
third variable? Maybe a better way to think about it is a heatmap where the
"contentfield" contains
the variable that controls the plot symbol size, and instead of
'colorlist', something like 'pltsymsizelist' provides the mapping between the
'cutofflist' and the "contentfield".
What might even be cooler is a stick as the plotting symbol with the height of
the stick related to "contentfield" magnitude so the graph would be quasi-3d.
have a look at http://www.thregr.org/~wavexx/software/trend/
or you might be able to modify
http://gapcmon.sourceforge.net/
( I know this group is for ploticus, but sometimes the most elegant solution is
the fastest one )
--- In ploticus@yahoogroups.com, Stephen Grubb <Stephen.Grubb@...> wrote:
>
> Hello Ben,
>
> Real-time or animated displays are pretty much outside of ploticus' intended
scope.
>
> You might be able to cobble something together that refreshes one or two times
per second, by repeatedly generating a png and repeatedly loading it.
> I believe some people have tried doing something like this directly as an X11
graphic (that's what the -x11 option does)... anyone wish to comment?
>
> Generally, faster refresh rates tend to cause flicker and other undesirable
side effects, because pl isn't optimized for smooth refresh.
>
> If you get something working let us know.. good luck.
>
> Steve
>
> ________________________________________
> From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of
pacificsymphony3 [pacificsymphony3@...]
> Sent: Tuesday, April 21, 2009 6:59 PM
> To: ploticus@yahoogroups.com
> Subject: [ploticus] using ploticus in a real-time gui
>
> Hi, all,
>
> I'm interesting in writing a gui to run on linux/unix that will display a
graph, which will be updated in real time, hopefully with a fairly fast refresh
rate. I'm thinking of doing this using libploticus. It would be cool if the
refresh rate could be faster than the persistence of vision, in order to create
a smooth animation, but if the refresh rate was only 1/sec or something I could
probably live with that.
>
> Is this a good idea, or is libploticus not really the appropriate tool for
this application?
>
> If it is a reasonable thing to do with libploticus, what would be the most
straightforward way to implement this? Repeatedly overwrite a PNG file, and keep
refreshing a display of the PNG image in the gui? I'm not really clear on what
the -x11 option is designed for -- would that be more appropriate?
>
> Thanks!
>
> -Ben Crowell
>
Hello,
The underlying engine has this capability but the scat prefab does not. You can
easily add it... go into your ./prefabs directory and edit scat.pl... and add
lines 209, 210, and 211 as shown below.
198 //// do the data points last so they are on top of the rest of the
stuff..
199 #proc scatterplot
200 xfield: @x
201 yfield: @y
202 symbol: shape=@ptshape style=@ptstyle radius=@ptsize color=@ptcolor
203 #ifspec clickmapurl
204 #ifspec clickmaplabel
205 legendlabel: @name
206 #ifspec ptselect select
207 #ifspec cluster
208 // the following 3 added scg 8/13/09
209 #ifspec sizefield
210 #ifspec sizescale
211 #ifspec colorfield
Then use pl -prefab scat ... sizefield=... and sizescale=... on your prefab
command line.
-----------
sizefield dfield
If specified, the size of data point symbols, lines, or text are controlled
by this data field, effectively allowing another variable to be presented. For
symbols or text the value in dfield will be taken to be a character point size
(see also sizescale). For line segments, the value in dfield will scale the
length of the lines, ie. a data value of 2.0 doubles it and 0.5 halves it.
sizescale n
May be used with sizefield when the size of data point symbols or text is
being controlled by a datafield. This attribute may be used to scale the size of
the point symbols to the desired range. Scaling is based on symbol area rather
than diameter. A value of 2.0 doubles the resulting size; 0.5 halves it.
colorfield dfield
If specified, the color of data point symbols, lines, text, or rectangles is
controlled by this data field, effectively allowing another variable to be
presented. The data field should contain color specifications. (New in 2.41)
Steve
________________________________________
From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of
beribboned [ben@...]
Sent: Thursday, August 13, 2009 1:10 PM
To: ploticus@yahoogroups.com
Subject: [ploticus] bubble plot
Is there a way (using prefabs) to create a bubble plot which is essentially a
scatterplot in which the plotting symbol diameter or area is proportional to a
third variable? Maybe a better way to think about it is a heatmap where the
"contentfield" contains
the variable that controls the plot symbol size, and instead of
'colorlist', something like 'pltsymsizelist' provides the mapping between the
'cutofflist' and the "contentfield".
What might even be cooler is a stick as the plotting symbol with the height of
the stick related to "contentfield" magnitude so the graph would be quasi-3d.
Ok, the sizefield and sizescale worked as advertised. I haven't got the
colorfield to work yet:
datafile:
3 3 20.45 black
5 1 1.00 blue
0 2 40.66 black
1 1 7.63 black
2 0 8.27 black
1 3 20.80 black
2 2 7.86 black
...
pl -prefab scat data=stdin x=1 y=2 sizefield=3 \
colorfield=4 \
rectangle=" 1.05 1.15 4.15 5.25" \
sizescale="1" \
xrange="-1.0 5 " yrange="-1.0 5 " \
firststub="." \
...
all points are blue.
ploticus 2.41-Mar2009 (unix)
Thanks
--- In ploticus@yahoogroups.com, Stephen Grubb <Stephen.Grubb@...> wrote:
>
> Hello,
>
> The underlying engine has this capability but the scat prefab does not. You
can easily add it... go into your ./prefabs directory and edit scat.pl... and
add lines 209, 210, and 211 as shown below.
>
> 198 //// do the data points last so they are on top of the rest of the
stuff..
> 199 #proc scatterplot
> 200 xfield: @x
> 201 yfield: @y
> 202 symbol: shape=@ptshape style=@ptstyle radius=@ptsize color=@ptcolor
> 203 #ifspec clickmapurl
> 204 #ifspec clickmaplabel
> 205 legendlabel: @name
> 206 #ifspec ptselect select
> 207 #ifspec cluster
> 208 // the following 3 added scg 8/13/09
> 209 #ifspec sizefield
> 210 #ifspec sizescale
> 211 #ifspec colorfield
>
> Then use pl -prefab scat ... sizefield=... and sizescale=... on your prefab
command line.
>
> -----------
>
> sizefield dfield
>
> If specified, the size of data point symbols, lines, or text are
controlled by this data field, effectively allowing another variable to be
presented. For symbols or text the value in dfield will be taken to be a
character point size (see also sizescale). For line segments, the value in
dfield will scale the length of the lines, ie. a data value of 2.0 doubles it
and 0.5 halves it.
>
> sizescale n
>
> May be used with sizefield when the size of data point symbols or text is
being controlled by a datafield. This attribute may be used to scale the size of
the point symbols to the desired range. Scaling is based on symbol area rather
than diameter. A value of 2.0 doubles the resulting size; 0.5 halves it.
>
> colorfield dfield
>
> If specified, the color of data point symbols, lines, text, or rectangles
is controlled by this data field, effectively allowing another variable to be
presented. The data field should contain color specifications. (New in 2.41)
>
>
> Steve
>
>
> ________________________________________
> From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of
beribboned [ben@...]
> Sent: Thursday, August 13, 2009 1:10 PM
> To: ploticus@yahoogroups.com
> Subject: [ploticus] bubble plot
>
> Is there a way (using prefabs) to create a bubble plot which is essentially a
scatterplot in which the plotting symbol diameter or area is proportional to a
third variable? Maybe a better way to think about it is a heatmap where the
"contentfield" contains
> the variable that controls the plot symbol size, and instead of
> 'colorlist', something like 'pltsymsizelist' provides the mapping between the
'cutofflist' and the "contentfield".
>
> What might even be cooler is a stick as the plotting symbol with the height of
the stick related to "contentfield" magnitude so the graph would be quasi-3d.
>
Hello Ben,
I tried your example and the colors seem to work here, using x11 and image
output formats... see attached img.
echo "3 3 20.45 black
5 1 1.00 blue
0 2 40.66 black
1 1 7.63 black
2 0 8.27 black
1 3 20.80 black
2 2 7.86 black" |
pl -gif -prefab scat data=stdin x=1 y=2 sizefield=3 \
colorfield=4 \
rectangle=" 1.05 1.15 4.15 5.25" \
sizescale="1" \
xrange="-1.0 5 " yrange="-1.0 5 "
?
Steve
________________________________________
From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of
beribboned [ben@...]
Sent: Monday, August 17, 2009 1:12 PM
To: ploticus@yahoogroups.com
Subject: [ploticus] Re: bubble plot
Ok, the sizefield and sizescale worked as advertised. I haven't got the
colorfield to work yet:
datafile:
3 3 20.45 black
5 1 1.00 blue
0 2 40.66 black
1 1 7.63 black
2 0 8.27 black
1 3 20.80 black
2 2 7.86 black
...
pl -prefab scat data=stdin x=1 y=2 sizefield=3 \
colorfield=4 \
rectangle=" 1.05 1.15 4.15 5.25" \
sizescale="1" \
xrange="-1.0 5 " yrange="-1.0 5 " \
firststub="." \
...
all points are blue.
ploticus 2.41-Mar2009 (unix)
Thanks
--- In ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com>, Stephen
Grubb <Stephen.Grubb@...> wrote:
>
> Hello,
>
> The underlying engine has this capability but the scat prefab does not. You
can easily add it... go into your ./prefabs directory and edit scat.pl... and
add lines 209, 210, and 211 as shown below.
>
> 198 //// do the data points last so they are on top of the rest of the stuff..
> 199 #proc scatterplot
> 200 xfield: @x
> 201 yfield: @y
> 202 symbol: shape=@ptshape style=@ptstyle radius=@ptsize color=@ptcolor
> 203 #ifspec clickmapurl
> 204 #ifspec clickmaplabel
> 205 legendlabel: @name
> 206 #ifspec ptselect select
> 207 #ifspec cluster
> 208 // the following 3 added scg 8/13/09
> 209 #ifspec sizefield
> 210 #ifspec sizescale
> 211 #ifspec colorfield
>
> Then use pl -prefab scat ... sizefield=... and sizescale=... on your prefab
command line.
>
> -----------
>
> sizefield dfield
>
> If specified, the size of data point symbols, lines, or text are controlled by
this data field, effectively allowing another variable to be presented. For
symbols or text the value in dfield will be taken to be a character point size
(see also sizescale). For line segments, the value in dfield will scale the
length of the lines, ie. a data value of 2.0 doubles it and 0.5 halves it.
>
> sizescale n
>
> May be used with sizefield when the size of data point symbols or text is
being controlled by a datafield. This attribute may be used to scale the size of
the point symbols to the desired range. Scaling is based on symbol area rather
than diameter. A value of 2.0 doubles the resulting size; 0.5 halves it.
>
> colorfield dfield
>
> If specified, the color of data point symbols, lines, text, or rectangles is
controlled by this data field, effectively allowing another variable to be
presented. The data field should contain color specifications. (New in 2.41)
>
>
> Steve
>
>
> ________________________________________
> From: ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com>
[ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com>] On Behalf Of
beribboned [ben@...]
> Sent: Thursday, August 13, 2009 1:10 PM
> To: ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com>
> Subject: [ploticus] bubble plot
>
> Is there a way (using prefabs) to create a bubble plot which is essentially a
scatterplot in which the plotting symbol diameter or area is proportional to a
third variable? Maybe a better way to think about it is a heatmap where the
"contentfield" contains
> the variable that controls the plot symbol size, and instead of
> 'colorlist', something like 'pltsymsizelist' provides the mapping between the
'cutofflist' and the "contentfield".
>
> What might even be cooler is a stick as the plotting symbol with the height of
the stick related to "contentfield" magnitude so the graph would be quasi-3d.
>
Is ps/eps output incompatible with colorfield? I searched and did not yet find
that restriction.
--- In ploticus@yahoogroups.com, Stephen Grubb <Stephen.Grubb@...> wrote:
>
> Hello Ben,
>
> I tried your example and the colors seem to work here, using x11 and image
output formats... see attached img.
>
> echo "3 3 20.45 black
> 5 1 1.00 blue
> 0 2 40.66 black
> 1 1 7.63 black
> 2 0 8.27 black
> 1 3 20.80 black
> 2 2 7.86 black" |
> pl -gif -prefab scat data=stdin x=1 y=2 sizefield=3 \
> colorfield=4 \
> rectangle=" 1.05 1.15 4.15 5.25" \
> sizescale="1" \
> xrange="-1.0 5 " yrange="-1.0 5 "
>
>
> ?
>
> Steve
>
>
> ________________________________________
> From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of
beribboned [ben@...]
> Sent: Monday, August 17, 2009 1:12 PM
> To: ploticus@yahoogroups.com
> Subject: [ploticus] Re: bubble plot
>
> Ok, the sizefield and sizescale worked as advertised. I haven't got the
colorfield to work yet:
>
> datafile:
> 3 3 20.45 black
> 5 1 1.00 blue
> 0 2 40.66 black
> 1 1 7.63 black
> 2 0 8.27 black
> 1 3 20.80 black
> 2 2 7.86 black
> ...
>
> pl -prefab scat data=stdin x=1 y=2 sizefield=3 \
> colorfield=4 \
> rectangle=" 1.05 1.15 4.15 5.25" \
> sizescale="1" \
> xrange="-1.0 5 " yrange="-1.0 5 " \
> firststub="." \
> ...
>
> all points are blue.
>
> ploticus 2.41-Mar2009 (unix)
>
> Thanks
>
> --- In ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com>, Stephen
Grubb <Stephen.Grubb@> wrote:
> >
> > Hello,
> >
> > The underlying engine has this capability but the scat prefab does not. You
can easily add it... go into your ./prefabs directory and edit scat.pl... and
add lines 209, 210, and 211 as shown below.
> >
> > 198 //// do the data points last so they are on top of the rest of the
stuff..
> > 199 #proc scatterplot
> > 200 xfield: @x
> > 201 yfield: @y
> > 202 symbol: shape=@ptshape style=@ptstyle radius=@ptsize color=@ptcolor
> > 203 #ifspec clickmapurl
> > 204 #ifspec clickmaplabel
> > 205 legendlabel: @name
> > 206 #ifspec ptselect select
> > 207 #ifspec cluster
> > 208 // the following 3 added scg 8/13/09
> > 209 #ifspec sizefield
> > 210 #ifspec sizescale
> > 211 #ifspec colorfield
> >
> > Then use pl -prefab scat ... sizefield=... and sizescale=... on your prefab
command line.
> >
> > -----------
> >
> > sizefield dfield
> >
> > If specified, the size of data point symbols, lines, or text are controlled
by this data field, effectively allowing another variable to be presented. For
symbols or text the value in dfield will be taken to be a character point size
(see also sizescale). For line segments, the value in dfield will scale the
length of the lines, ie. a data value of 2.0 doubles it and 0.5 halves it.
> >
> > sizescale n
> >
> > May be used with sizefield when the size of data point symbols or text is
being controlled by a datafield. This attribute may be used to scale the size of
the point symbols to the desired range. Scaling is based on symbol area rather
than diameter. A value of 2.0 doubles the resulting size; 0.5 halves it.
> >
> > colorfield dfield
> >
> > If specified, the color of data point symbols, lines, text, or rectangles is
controlled by this data field, effectively allowing another variable to be
presented. The data field should contain color specifications. (New in 2.41)
> >
> >
> > Steve
> >
> >
> > ________________________________________
> > From: ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com>
[ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com>] On Behalf Of
beribboned [ben@]
> > Sent: Thursday, August 13, 2009 1:10 PM
> > To: ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com>
> > Subject: [ploticus] bubble plot
> >
> > Is there a way (using prefabs) to create a bubble plot which is essentially
a scatterplot in which the plotting symbol diameter or area is proportional to a
third variable? Maybe a better way to think about it is a heatmap where the
"contentfield" contains
> > the variable that controls the plot symbol size, and instead of
> > 'colorlist', something like 'pltsymsizelist' provides the mapping between
the 'cutofflist' and the "contentfield".
> >
> > What might even be cooler is a stick as the plotting symbol with the height
of the stick related to "contentfield" magnitude so the graph would be quasi-3d.
> >
>
I am making a concept chart using the #proc annotate method based on the "simple
E-R diagram" example on http://ploticus.sourceforge.net/doc/clickmap.html
When I add several concepts wide, the image seems to truncate at x=1024 (any
backingbox, or text stops at 1024). Is there an easy way around this? Even 1280x
would help.
I have messed with the -scale to get it to fit, but the font gets very small.
tx
Hello,
did you try increasing -pagesize ?
Steve
________________________________________
From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of
beribboned [ben@...]
Sent: Thursday, August 20, 2009 2:30 PM
To: ploticus@yahoogroups.com
Subject: [ploticus] imagemap, and mouseover support
I am making a concept chart using the #proc annotate method based on the "simple
E-R diagram" example on http://ploticus.sourceforge.net/doc/clickmap.html
When I add several concepts wide, the image seems to truncate at x=1024 (any
backingbox, or text stops at 1024). Is there an easy way around this? Even 1280x
would help.
I have messed with the -scale to get it to fit, but the font gets very small.
tx
Hello,
Are you able to get the desired results if you produce an img? If so, then it
indicates that the problem may be specific to ps/eps. Let me know, meanwhile I
will set up a test when I have the chance.
Steve
________________________________________
From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of
beribboned [ben@...]
Sent: Tuesday, August 18, 2009 2:11 PM
To: ploticus@yahoogroups.com
Subject: [ploticus] Re: bubble plot
Is ps/eps output incompatible with colorfield? I searched and did not yet find
that restriction.
--- In ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com>, Stephen
Grubb <Stephen.Grubb@...> wrote:
>
> Hello Ben,
>
> I tried your example and the colors seem to work here, using x11 and image
output formats... see attached img.
>
> echo "3 3 20.45 black
> 5 1 1.00 blue
> 0 2 40.66 black
> 1 1 7.63 black
> 2 0 8.27 black
> 1 3 20.80 black
> 2 2 7.86 black" |
> pl -gif -prefab scat data=stdin x=1 y=2 sizefield=3 \
> colorfield=4 \
> rectangle=" 1.05 1.15 4.15 5.25" \
> sizescale="1" \
> xrange="-1.0 5 " yrange="-1.0 5 "
>
>
> ?
>
> Steve
>
>
> ________________________________________
> From: ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com>
[ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com>] On Behalf Of
beribboned [ben@...]
> Sent: Monday, August 17, 2009 1:12 PM
> To: ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com>
> Subject: [ploticus] Re: bubble plot
>
> Ok, the sizefield and sizescale worked as advertised. I haven't got the
colorfield to work yet:
>
> datafile:
> 3 3 20.45 black
> 5 1 1.00 blue
> 0 2 40.66 black
> 1 1 7.63 black
> 2 0 8.27 black
> 1 3 20.80 black
> 2 2 7.86 black
> ...
>
> pl -prefab scat data=stdin x=1 y=2 sizefield=3 \
> colorfield=4 \
> rectangle=" 1.05 1.15 4.15 5.25" \
> sizescale="1" \
> xrange="-1.0 5 " yrange="-1.0 5 " \
> firststub="." \
> ...
>
> all points are blue.
>
> ploticus 2.41-Mar2009 (unix)
>
> Thanks
>
> --- In
ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com><mailto:ploticus%40ya\
hoogroups.com>, Stephen Grubb <Stephen.Grubb@> wrote:
> >
> > Hello,
> >
> > The underlying engine has this capability but the scat prefab does not. You
can easily add it... go into your ./prefabs directory and edit scat.pl... and
add lines 209, 210, and 211 as shown below.
> >
> > 198 //// do the data points last so they are on top of the rest of the
stuff..
> > 199 #proc scatterplot
> > 200 xfield: @x
> > 201 yfield: @y
> > 202 symbol: shape=@ptshape style=@ptstyle radius=@ptsize color=@ptcolor
> > 203 #ifspec clickmapurl
> > 204 #ifspec clickmaplabel
> > 205 legendlabel: @name
> > 206 #ifspec ptselect select
> > 207 #ifspec cluster
> > 208 // the following 3 added scg 8/13/09
> > 209 #ifspec sizefield
> > 210 #ifspec sizescale
> > 211 #ifspec colorfield
> >
> > Then use pl -prefab scat ... sizefield=... and sizescale=... on your prefab
command line.
> >
> > -----------
> >
> > sizefield dfield
> >
> > If specified, the size of data point symbols, lines, or text are controlled
by this data field, effectively allowing another variable to be presented. For
symbols or text the value in dfield will be taken to be a character point size
(see also sizescale). For line segments, the value in dfield will scale the
length of the lines, ie. a data value of 2.0 doubles it and 0.5 halves it.
> >
> > sizescale n
> >
> > May be used with sizefield when the size of data point symbols or text is
being controlled by a datafield. This attribute may be used to scale the size of
the point symbols to the desired range. Scaling is based on symbol area rather
than diameter. A value of 2.0 doubles the resulting size; 0.5 halves it.
> >
> > colorfield dfield
> >
> > If specified, the color of data point symbols, lines, text, or rectangles is
controlled by this data field, effectively allowing another variable to be
presented. The data field should contain color specifications. (New in 2.41)
> >
> >
> > Steve
> >
> >
> > ________________________________________
> > From:
ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com><mailto:ploticus%40ya\
hoogroups.com>
[ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com><mailto:ploticus%40y\
ahoogroups.com>] On Behalf Of beribboned [ben@]
> > Sent: Thursday, August 13, 2009 1:10 PM
> > To:
ploticus@yahoogroups.com<mailto:ploticus%40yahoogroups.com><mailto:ploticus%40ya\
hoogroups.com>
> > Subject: [ploticus] bubble plot
> >
> > Is there a way (using prefabs) to create a bubble plot which is essentially
a scatterplot in which the plotting symbol diameter or area is proportional to a
third variable? Maybe a better way to think about it is a heatmap where the
"contentfield" contains
> > the variable that controls the plot symbol size, and instead of
> > 'colorlist', something like 'pltsymsizelist' provides the mapping between
the 'cutofflist' and the "contentfield".
> >
> > What might even be cooler is a stick as the plotting symbol with the height
of the stick related to "contentfield" magnitude so the graph would be quasi-3d.
> >
>
Thanks. I experimented with the pagesize option and found that I need to
increase the pixsize option appropriately to make it all work out pretty.
In my case, -pagesize 13,6 -pixsize 1220,500 works. I obviously need to
re-read the explanation of those parameters so I don't have to use brute-force
experimentation to get it right.
Thanks
--- In ploticus@yahoogroups.com, Stephen Grubb <Stephen.Grubb@...> wrote:
>
> Hello,
>
> did you try increasing -pagesize ?
>
> Steve
>
> ________________________________________
> From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of
beribboned [ben@...]
> Sent: Thursday, August 20, 2009 2:30 PM
> To: ploticus@yahoogroups.com
> Subject: [ploticus] imagemap, and mouseover support
>
> I am making a concept chart using the #proc annotate method based on the
"simple E-R diagram" example on
http://ploticus.sourceforge.net/doc/clickmap.html
>
> When I add several concepts wide, the image seems to truncate at x=1024 (any
backingbox, or text stops at 1024). Is there an easy way around this? Even 1280x
would help.
>
> I have messed with the -scale to get it to fit, but the font gets very small.
>
> tx
>
If you built ploticus from the source code you can raise the limit yourself.
cd src
edit clickmap.c
find this: #define MAXENTRIES 500
and change the value to 5000 or whatever.
Then do: make clean; make
I will keep a note of the request to raise this limit in general and hopefully we can do something about this in the next release.
Steve
On Tue, Sep 15, 2009 at 6:56 AM, Champ Lee <champlee@...> wrote:
Hello Steve,
First, thank you so much for your most excellent Ploticus software. I am finding it easier to use than most other tools in this space, and the robust features and control capabilities rival those of commercial products such as SAS/Graph.
My only problem is that I continue to hit the hard limit of 500 clickable zones and mouseover labels per job. Would it be possible to raise that value to say 5000, or better yet, make it a user configurable option? I have been using Ploticus to create stacked bar charts, and it is quite easy to exceed the 500 value. I have attached a sample of this type of problem as a html archive.
Thanks for all your efforts on Ploticus, and for any advice you might have.
Hi folks! I respectfully submit the following patch for the next release of
ploticus. It makes some super-trivial but useful changes to a prefab script.
We use chron prefabs to create "mrtg-style" network graphs every 5 minutes. We
use "xnearest=exact" so that we dont have these disconcerting "gaps" at the
start and end of our graph. However, this means that the first stub says "00"
even though it's actually "00:15"... and we don't want to change the stub format
to display minutes.
The right way to solve this is to use "stubround", but the current prefabs don't
allow passing that through. The current patch solves this with only two
additional lines.
*** chunk_xaxis.orig 2009-10-10 02:54:36.000000000 +0000
--- chunk_xaxis 2009-10-10 02:55:41.000000000 +0000
***************
*** 17,24 ****
--- 17,25 ----
//
// added 5/25/04 scg
#ifspec xstubdet stubdetails
stubrange: @XMIN
+ #ifspec xstubround stubround
#ifspec stubvert
#ifspec xgrid grid
#ifspec xgridblocks gridblocks
#ifspec xgridskip gridskip
***************
*** 57,64 ****
--- 58,66 ----
#ifspec xstubfmt stubformat
//
// added 5/25/04 scg
stubrange: @XMIN
+ #ifspec xstubround stubround
#ifspec stubvert
#ifspec xgrid grid
#ifspec xlbldistance labeldistance
Hello everyone,
I want to generate a gif-file using 'proc scatterplot'. Further I want to use
the clickmap-mouseover-feature of ploticus, so that a label appears when moving
the mouse-pointer over a datapoint of the plot, like it is described. This label
should contain further information concerning the datapoint. E.g. I have
following data in a file (<perl_out_msg.txt>):
<15 1 18082009 16:45 P 193.500 193.500 mA>. On xaxis datetime is set (using 3rd
and 4th entry of file), on yaxis the value is set (using 7th entry , and 5th
entry for the data-driven appearance of val). Now I want to give in the
(clickmap)label the value of the 2nd entry of the file, like following (part of
ploticus-script <board_val.pl> ):
...
#proc getdata
file: perl_out_data/perl_out_msg.txt
delimit: space
pf_fieldnames: datetime nbytes res nr
filter:
##set TIME = @@4
@@3.@@TIME @@7 @@5 @@2
...
#proc legendentry
sampletype: symbol
tag: P
details: shape=square radius=0.04 style=filled fillcolor=green
label: P
#proc scatterplot
xfield: datetime
yfield: nbytes
symfield: res
clickmaplabel: nr
...
When I run batch with cmd
"..\pl" -gif ploticus_scripts\board_val.pl -csmap -mapfile stdout
I get the plot/gif-file, but the mouseoverlabel doesn't work. Following messages
are given:
<area shape="rect" nohref coords="998,213,1006,221" title="nr" alt="nr" />
What do I make wrong/forget ?
There seems to be missing the reference ?
I tried already to set up "white" bars, but this didn't work either.
Or is clickmaplabel not intended to work with scatterplot as I want ?
Thanks a lot,
best regards,
Berthold
I am a musician tracking my daily practice time in four categories. I would
like to have a graph that represents one day's practice as a stacked bar
totalling up each category. The data looks like this
<date> <cat1> <cat2> <cat3> <cat4>
090918 .3 .1 1.1 .6
090919 0 .5 0 .1
.
.
.
I'm getting close to what I want with this command:
ploticus -png -prefab stack data=/data/personal/prac_data.dat y=2 y2=3
y3=4 y4=5 color=red tab=day title="Hours of practice per day" name="Cat1"
name2="Cat2" name3="Cat3" name4="Cat4" -o /tmp/ploticus_stacked_graph.png
which generates this:
http://onensemble.org/krisShare/ploticus_stacked_graph.png
But as you can see, the x-axis text is overlapping and unreadable.
Is there some way to either fix the dates, or remove all x-axis labels
entirely?
Thank you in advance for any advice you're able to provide.
Kris
--
View this message in context:
http://www.nabble.com/Stacked-bar-graph-x-axis-problem-tp25986731p25986731.html
Sent from the Ploticus mailing list archive at Nabble.com.
mouseover on gif images is only possible when viewing an html page via a web browser.
the <area.. > tags that pl writtes to stdout need to be incorporated into the html that the browser is receiving. In dynamicly generated html environments such as CGI this kind of happens automatically because stdout is where all the html goes.
I don't know how else to explain it.
Steve
On Mon, Oct 19, 2009 at 10:40 AM, berthold_mayer <berthold_mayer@...> wrote:
Hello everyone,
I want to generate a gif-file using 'proc scatterplot'. Further I want to use the clickmap-mouseover-feature of ploticus, so that a label appears when moving the mouse-pointer over a datapoint of the plot, like it is described. This label should contain further information concerning the datapoint. E.g. I have following data in a file (<perl_out_msg.txt>):
<15 1 18082009 16:45 P 193.500 193.500 mA>. On xaxis datetime is set (using 3rd and 4th entry of file), on yaxis the value is set (using 7th entry , and 5th entry for the data-driven appearance of val). Now I want to give in the (clickmap)label the value of the 2nd entry of the file, like following (part of ploticus-script <board_val.pl> ):
...
#proc getdata
file: perl_out_data/perl_out_msg.txt
delimit: space
pf_fieldnames: datetime nbytes res nr
filter:
##set TIME = @@4
@@3.@@TIME @@7 @@5 @@2
...
#proc legendentry
sampletype: symbol
tag: P
details: shape=square radius=0.04 style=filled fillcolor=green
label: P
#proc scatterplot
xfield: datetime
yfield: nbytes
symfield: res
clickmaplabel: nr
...
I get the plot/gif-file, but the mouseoverlabel doesn't work. Following messages are given:
<area shape="rect" nohref coords="998,213,1006,221" title="nr" alt="nr" />
What do I make wrong/forget ?
There seems to be missing the reference ?
I tried already to set up "white" bars, but this didn't work either.
Or is clickmaplabel not intended to work with scatterplot as I want ?
Hello... this improvement will be present in the next release. -Steve
On Mon, Oct 12, 2009 at 3:17 PM, chmarrcheetah <chris@...> wrote:
Hi folks! I respectfully submit the following patch for the next release of ploticus. It makes some super-trivial but useful changes to a prefab script.
We use chron prefabs to create "mrtg-style" network graphs every 5 minutes. We use "xnearest=exact" so that we dont have these disconcerting "gaps" at the start and end of our graph. However, this means that the first stub says "00" even though it's actually "00:15"... and we don't want to change the stub format to display minutes.
The right way to solve this is to use "stubround", but the current prefabs don't allow passing that through. The current patch solves this with only two additional lines.
Hello there, try adding stubvert=yes to the command.
Steve
On Wed, Oct 21, 2009 at 1:35 AM, xuxa <kris@...> wrote:
I am a musician tracking my daily practice time in four categories. I would
like to have a graph that represents one day's practice as a stacked bar
totalling up each category. The data looks like this
ploticus,
Trying to make the world's simplest bar graph here, with this script:
#proc getdata
file: wine.dat
showdata: yes
delim: whitespace
fieldnames: wine score
#proc areadef
title: Wine Scores
rectangle: 1 1 5 2
//xrange: 0 30
//yrange: 0 4
xautorange: datafield=wine
yautorange: datafield=score
yaxis.stubs: incremental 1
#proc bars
lenfield: 1
//color: rgb(.8,1,.7)
//longwayslabel: yes
//labeldetails: align=R adjust=0,-0.1
When I run it I see:
1026 ~/tmp>pl -png winebars.pl
// proc getdata has read & parsed these data:
// field names are: wine|score|
Wine:1|3|
Wine:2|2|
Wine:3|2|
Wine:4|3|
Wine:5|2|
Wine:6|1|
Wine:7|3|
Wine:8|4|
Wine:9|1|
Wine:10|1|
Wine:11|3|
Wine:12|2|
Wine:13|2|
Wine:14|3|
Wine:15|2|
Wine:16|1|
Wine:17|3|
Wine:18|4|
Wine:19|1|
Wine:20|1|
Wine:21|3|
Wine:22|2|
Wine:23|2|
Wine:24|3|
Wine:25|2|
Wine:26|1|
Wine:27|3|
Wine:28|4|
Wine:29|1|
Wine:30|2|
// end of data set
pl proc areadef: error 5709: autorange: all data out of range
And the resulting *png has a y axis with 1,2,3,4, no x axis and no bars. I've a
few different variations - what am I missing?
Thanks again,
BIO