[Graph-dev] Bug?
Pablo_SANCHEZ at enovia.com
Pablo_SANCHEZ at enovia.com
Wed Oct 29 11:26:45 PST 2003
My "fix" works.
By the way, I'm playing with Gnuplot.pm,v 1.37 .
Here's the diff:
83,86c83
< "formatx" => undef,
< "formaty" => undef,
< "formatx2" => undef,
< "formaty2" => undef,
---
> "format" => undef,
318,345d314
< if ($key eq "formatx") {
< if (defined($value)) {
< # Print value supplying quotes for time format.
< print $handle "set format x", " \"",
< $value, "\" \n";
< }
< }
< if ($key eq "formatx2") {
< if (defined($value)) {
< # Print value supplying quotes for time format.
< print $handle "set format x2", " \"",
< $value, "\" \n";
< }
< }
< if ($key eq "formaty") {
< if (defined($value)) {
< # Print value supplying quotes for time format.
< print $handle "set format y", " \"",
< $value, "\" \n";
< }
< }
< if ($key eq "formaty2") {
< if (defined($value)) {
< # Print value supplying quotes for time format.
< print $handle "set format y2", " \"",
< $value, "\" \n";
< }
< }
-Pablo Sanchez
-----------------------------------------------------------------------------------------------------
Pablo A Sanchez, Phone: (704) 944-8987, Fax: (704) 944-8888
ENOVIA , 10926 David Taylor Dr, Charlotte, NC 28262
----- Forwarded by Pablo SANCHEZ/dassault-systemes on 10/29/2003 11:24 AM
-----
|---------+--------------------------->
| | Pablo SANCHEZ |
| | |
| | 10/29/2003 11:17|
| | AM |
| | |
|---------+--------------------------->
>------------------------------------------------------------------------------------------------------------------------|
| |
| To: graph-dev at caida.org |
| cc: |
| Subject: Bug? |
| |
>------------------------------------------------------------------------------------------------------------------------|
Hello,
Thank you for your work on the gnuplot.pm. I have been playing with it and
I've found a small bug. It appears that it is impossible to have multiple
"format" statements. For example:
"format"=>["x","%d/%m"],
"format"=>["x2","%a"]
will only accept the last entry.
My local fix will be to replace the "format" with "formatx", "formaty",
"formatx2", and "formaty2".
Another fix, I guess, would be to allow multiple sets of formats in the
original "format" entry (e.g., "format"=>["x","%m/%d","x2","%a"]. I might
try this as well.
Would you like my changes once I do this?
Thank you,
-Pablo Sanchez
-----------------------------------------------------------------------------------------------------
Pablo A Sanchez, Phone: (704) 944-8987, Fax: (704) 944-8888
ENOVIA , 10926 David Taylor Dr, Charlotte, NC 28262
More information about the Graph-dev
mailing list