Series labels from data file?

View: New views
11 Messages — Rating Filter:   Alert me  

Series labels from data file?

by stevecoh1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Given the following dataset

2009-04    OFF    67935    248967.45    0
2009-05    OFF    35693    131338.02    0
2009-06    OFF    118    599.07    0
2009-10    OFF    1    0.63    0


2009-04    NEW    1627    5566.72    1
2009-05    NEW    737    4996.18    1
2009-06    NEW    414    1902.48    1
2009-07    NEW    79    232.22    1
2009-08    NEW    119    248.03    1
2009-09    NEW    122    190.87    1
2009-10    NEW    97    67.92    1


2009-05    VERIFIED    1061    6909.02    10
2009-06    VERIFIED    3690    27681.30    10
2009-07    VERIFIED    1842    13867.37    10
2009-08    VERIFIED    1894    13529.98    10
2009-09    VERIFIED    1433    10401.02    10
2009-10    VERIFIED    1916    10619.17    10


2009-06    CERTIFIED    17    185.33    11
2009-07    CERTIFIED    163    1067.47    11
2009-08    CERTIFIED    127    1037.75    11
2009-09    CERTIFIED    118    1148.42    11
2009-10    CERTIFIED    532    2301.32    11

I'd like to get the series titles from Column 2.  Also, the double line
feeds between series were added manually.  It would be nice if I didn't
have to do that and could trigger a new series based on the contents of
column 2.  Are either of these things possible.

Since I can't do either of these I am doing instead

set xdata time
set timefmt "%Y-%m"
set format x "%m/%Y"
plot "datafile" index 0 u 1:4 t "OFF" with linespoints, \
"" index 1 u 1:4 t "NEW" with linespoints, \
"" index 2 u 1:4 t "VERIFIED" with linespoints,
"" index 3 u 1:4 t "CERTIFIED" with linespoints

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Series labels from data file?

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

in gnuplot 4.5-cvs (or the coming version 4.4) you
may use the following script:

reset
set xdata time
set timefmt "%Y-%m"
set format x "%m/%Y"
# dummy plot to collect the data set names (plots nothing)
laststring = ""
datasetnames = ""
set table
plot 'datafile' us 1:(stringcolumn(2) eq laststring \
   ? 0 \
   : (laststring = stringcolumn(2) , \
      datasetnames = datasetnames . " " . laststring , \
      0))
unset table
# and now the real plot
plot for [i in datasetnames] 'datafile' \
   using 1:(stringcolumn(2) eq i ? $4 : 0/0) \
   title i with linespoints

Steve Cohen wrote:
Given the following dataset

2009-04    OFF    67935    248967.45    0
2009-05    OFF    35693    131338.02    0
2009-06    OFF    118    599.07    0
2009-10    OFF    1    0.63    0


2009-04    NEW    1627    5566.72    1
2009-05    NEW    737    4996.18    1
2009-06    NEW    414    1902.48    1
2009-07    NEW    79    232.22    1
2009-08    NEW    119    248.03    1
2009-09    NEW    122    190.87    1
2009-10    NEW    97    67.92    1


2009-05    VERIFIED    1061    6909.02    10
2009-06    VERIFIED    3690    27681.30    10
2009-07    VERIFIED    1842    13867.37    10
2009-08    VERIFIED    1894    13529.98    10
2009-09    VERIFIED    1433    10401.02    10
2009-10    VERIFIED    1916    10619.17    10


2009-06    CERTIFIED    17    185.33    11
2009-07    CERTIFIED    163    1067.47    11
2009-08    CERTIFIED    127    1037.75    11
2009-09    CERTIFIED    118    1148.42    11
2009-10    CERTIFIED    532    2301.32    11

I'd like to get the series titles from Column 2.  Also, the double line
feeds between series were added manually.  It would be nice if I didn't
have to do that and could trigger a new series based on the contents of
column 2.  Are either of these things possible.

Since I can't do either of these I am doing instead

set xdata time
set timefmt "%Y-%m"
set format x "%m/%Y"
plot "datafile" index 0 u 1:4 t "OFF" with linespoints, \
"" index 1 u 1:4 t "NEW" with linespoints, \
"" index 2 u 1:4 t "VERIFIED" with linespoints,
"" index 3 u 1:4 t "CERTIFIED" with linespoints

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Series labels from data file?

by stevecoh1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Great news! Thank you very much. As I'm sure you know, data such as this
is practically the "canonical" way a SQL aggregate query rolls off. You
HAVE TO have the repetition in the data. The alternative would somehow
be to preprocess it (as "report generators" do) or do multiple queries,
both of which are suboptimal at best.

So the question is, how to get this on the platform I need. I'm pretty
sure it won't compile on RedHat since they haven't even gone beyond 4.0
so the question is, is there documentation anywhere for building it with
all the needed libraries linked in rather than using shared libs? Has
anyone done this?


Thomas Sefzick wrote:

> in gnuplot 4.5-cvs (or the coming version 4.4) you
> may use the following script:
>
> reset
> set xdata time
> set timefmt "%Y-%m"
> set format x "%m/%Y"
> # dummy plot to collect the data set names (plots nothing)
> laststring = ""
> datasetnames = ""
> set table
> plot 'datafile' us 1:(stringcolumn(2) eq laststring \
>    ? 0 \
>    : (laststring = stringcolumn(2) , \
>       datasetnames = datasetnames . " " . laststring , \
>       0))
> unset table
> # and now the real plot
> plot for [i in datasetnames] 'datafile' \
>    using 1:(stringcolumn(2) eq i ? $4 : 0/0) \
>    title i with linespoints
>
>
> Steve Cohen wrote:
>  
>> Given the following dataset
>>
>> 2009-04    OFF    67935    248967.45    0
>> 2009-05    OFF    35693    131338.02    0
>> 2009-06    OFF    118    599.07    0
>> 2009-10    OFF    1    0.63    0
>>
>>
>> 2009-04    NEW    1627    5566.72    1
>> 2009-05    NEW    737    4996.18    1
>> 2009-06    NEW    414    1902.48    1
>> 2009-07    NEW    79    232.22    1
>> 2009-08    NEW    119    248.03    1
>> 2009-09    NEW    122    190.87    1
>> 2009-10    NEW    97    67.92    1
>>
>>
>> 2009-05    VERIFIED    1061    6909.02    10
>> 2009-06    VERIFIED    3690    27681.30    10
>> 2009-07    VERIFIED    1842    13867.37    10
>> 2009-08    VERIFIED    1894    13529.98    10
>> 2009-09    VERIFIED    1433    10401.02    10
>> 2009-10    VERIFIED    1916    10619.17    10
>>
>>
>> 2009-06    CERTIFIED    17    185.33    11
>> 2009-07    CERTIFIED    163    1067.47    11
>> 2009-08    CERTIFIED    127    1037.75    11
>> 2009-09    CERTIFIED    118    1148.42    11
>> 2009-10    CERTIFIED    532    2301.32    11
>>
>> I'd like to get the series titles from Column 2.  Also, the double line
>> feeds between series were added manually.  It would be nice if I didn't
>> have to do that and could trigger a new series based on the contents of
>> column 2.  Are either of these things possible.
>>
>> Since I can't do either of these I am doing instead
>>
>> set xdata time
>> set timefmt "%Y-%m"
>> set format x "%m/%Y"
>> plot "datafile" index 0 u 1:4 t "OFF" with linespoints, \
>> "" index 1 u 1:4 t "NEW" with linespoints, \
>> "" index 2 u 1:4 t "VERIFIED" with linespoints,
>> "" index 3 u 1:4 t "CERTIFIED" with linespoints
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Gnuplot-info mailing list
>> Gnuplot-info@...
>> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>
>>
>>    
>
>  


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Series labels from data file?

by stevecoh1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well, I was able to build, even on RedHat, but it creates a very small
set of terminals. Missing are any
ubiquitously displayable filetype terminals such as png, gif, or jpeg. I
also built on Ubuntu, which at least provides png and jpeg. What governs
this and what can be done about it?


Steve Cohen wrote:

> Great news! Thank you very much. As I'm sure you know, data such as this
> is practically the "canonical" way a SQL aggregate query rolls off. You
> HAVE TO have the repetition in the data. The alternative would somehow
> be to preprocess it (as "report generators" do) or do multiple queries,
> both of which are suboptimal at best.
>
> So the question is, how to get this on the platform I need. I'm pretty
> sure it won't compile on RedHat since they haven't even gone beyond 4.0
> so the question is, is there documentation anywhere for building it with
> all the needed libraries linked in rather than using shared libs? Has
> anyone done this?
>
>
> Thomas Sefzick wrote:
>  
>> in gnuplot 4.5-cvs (or the coming version 4.4) you
>> may use the following script:
>>
>> reset
>> set xdata time
>> set timefmt "%Y-%m"
>> set format x "%m/%Y"
>> # dummy plot to collect the data set names (plots nothing)
>> laststring = ""
>> datasetnames = ""
>> set table
>> plot 'datafile' us 1:(stringcolumn(2) eq laststring \
>>    ? 0 \
>>    : (laststring = stringcolumn(2) , \
>>       datasetnames = datasetnames . " " . laststring , \
>>       0))
>> unset table
>> # and now the real plot
>> plot for [i in datasetnames] 'datafile' \
>>    using 1:(stringcolumn(2) eq i ? $4 : 0/0) \
>>    title i with linespoints
>>
>>
>> Steve Cohen wrote:
>>  
>>    
>>> Given the following dataset
>>>
>>> 2009-04    OFF    67935    248967.45    0
>>> 2009-05    OFF    35693    131338.02    0
>>> 2009-06    OFF    118    599.07    0
>>> 2009-10    OFF    1    0.63    0
>>>
>>>
>>> 2009-04    NEW    1627    5566.72    1
>>> 2009-05    NEW    737    4996.18    1
>>> 2009-06    NEW    414    1902.48    1
>>> 2009-07    NEW    79    232.22    1
>>> 2009-08    NEW    119    248.03    1
>>> 2009-09    NEW    122    190.87    1
>>> 2009-10    NEW    97    67.92    1
>>>
>>>
>>> 2009-05    VERIFIED    1061    6909.02    10
>>> 2009-06    VERIFIED    3690    27681.30    10
>>> 2009-07    VERIFIED    1842    13867.37    10
>>> 2009-08    VERIFIED    1894    13529.98    10
>>> 2009-09    VERIFIED    1433    10401.02    10
>>> 2009-10    VERIFIED    1916    10619.17    10
>>>
>>>
>>> 2009-06    CERTIFIED    17    185.33    11
>>> 2009-07    CERTIFIED    163    1067.47    11
>>> 2009-08    CERTIFIED    127    1037.75    11
>>> 2009-09    CERTIFIED    118    1148.42    11
>>> 2009-10    CERTIFIED    532    2301.32    11
>>>
>>> I'd like to get the series titles from Column 2.  Also, the double line
>>> feeds between series were added manually.  It would be nice if I didn't
>>> have to do that and could trigger a new series based on the contents of
>>> column 2.  Are either of these things possible.
>>>
>>> Since I can't do either of these I am doing instead
>>>
>>> set xdata time
>>> set timefmt "%Y-%m"
>>> set format x "%m/%Y"
>>> plot "datafile" index 0 u 1:4 t "OFF" with linespoints, \
>>> "" index 1 u 1:4 t "NEW" with linespoints, \
>>> "" index 2 u 1:4 t "VERIFIED" with linespoints,
>>> "" index 3 u 1:4 t "CERTIFIED" with linespoints
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Gnuplot-info mailing list
>>> Gnuplot-info@...
>>> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>>
>>>
>>>    
>>>      
>>  
>>    
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gnuplot-info mailing list
> Gnuplot-info@...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
>  


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Series labels from data file?

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

after extracting the source files, you ran 'configure'

at the end of the output of this program it is listed
which terminals will be built - together with some
information what would be needed to include the
missing terminals, e.g.:

** Configuration summary for gnuplot 4.3:

gnuplot will be compiled with the following terminals:

...
  gif terminal: yes (with animated gif)
...
  aqua terminal (MacOS X): no
  wxt terminal: no (requires C++, wxWidgets>2.6, cairo>0.9, pango>1.10)
  cairo-based terminals: no (requires cairo>1.2, pango>1.10)
...

Steve Cohen wrote:
Well, I was able to build, even on RedHat, but it creates a very small
set of terminals. Missing are any
ubiquitously displayable filetype terminals such as png, gif, or jpeg. I
also built on Ubuntu, which at least provides png and jpeg. What governs
this and what can be done about it?


Steve Cohen wrote:
> Great news! Thank you very much. As I'm sure you know, data such as this
> is practically the "canonical" way a SQL aggregate query rolls off. You
> HAVE TO have the repetition in the data. The alternative would somehow
> be to preprocess it (as "report generators" do) or do multiple queries,
> both of which are suboptimal at best.
>
> So the question is, how to get this on the platform I need. I'm pretty
> sure it won't compile on RedHat since they haven't even gone beyond 4.0
> so the question is, is there documentation anywhere for building it with
> all the needed libraries linked in rather than using shared libs? Has
> anyone done this?
>
>
> Thomas Sefzick wrote:
>  
>> in gnuplot 4.5-cvs (or the coming version 4.4) you
>> may use the following script:
>>
>> reset
>> set xdata time
>> set timefmt "%Y-%m"
>> set format x "%m/%Y"
>> # dummy plot to collect the data set names (plots nothing)
>> laststring = ""
>> datasetnames = ""
>> set table
>> plot 'datafile' us 1:(stringcolumn(2) eq laststring \
>>    ? 0 \
>>    : (laststring = stringcolumn(2) , \
>>       datasetnames = datasetnames . " " . laststring , \
>>       0))
>> unset table
>> # and now the real plot
>> plot for [i in datasetnames] 'datafile' \
>>    using 1:(stringcolumn(2) eq i ? $4 : 0/0) \
>>    title i with linespoints
>>
>>
>> Steve Cohen wrote:
>>  
>>    
>>> Given the following dataset
>>>
>>> 2009-04    OFF    67935    248967.45    0
>>> 2009-05    OFF    35693    131338.02    0
>>> 2009-06    OFF    118    599.07    0
>>> 2009-10    OFF    1    0.63    0
>>>
>>>
>>> 2009-04    NEW    1627    5566.72    1
>>> 2009-05    NEW    737    4996.18    1
>>> 2009-06    NEW    414    1902.48    1
>>> 2009-07    NEW    79    232.22    1
>>> 2009-08    NEW    119    248.03    1
>>> 2009-09    NEW    122    190.87    1
>>> 2009-10    NEW    97    67.92    1
>>>
>>>
>>> 2009-05    VERIFIED    1061    6909.02    10
>>> 2009-06    VERIFIED    3690    27681.30    10
>>> 2009-07    VERIFIED    1842    13867.37    10
>>> 2009-08    VERIFIED    1894    13529.98    10
>>> 2009-09    VERIFIED    1433    10401.02    10
>>> 2009-10    VERIFIED    1916    10619.17    10
>>>
>>>
>>> 2009-06    CERTIFIED    17    185.33    11
>>> 2009-07    CERTIFIED    163    1067.47    11
>>> 2009-08    CERTIFIED    127    1037.75    11
>>> 2009-09    CERTIFIED    118    1148.42    11
>>> 2009-10    CERTIFIED    532    2301.32    11
>>>
>>> I'd like to get the series titles from Column 2.  Also, the double line
>>> feeds between series were added manually.  It would be nice if I didn't
>>> have to do that and could trigger a new series based on the contents of
>>> column 2.  Are either of these things possible.
>>>
>>> Since I can't do either of these I am doing instead
>>>
>>> set xdata time
>>> set timefmt "%Y-%m"
>>> set format x "%m/%Y"
>>> plot "datafile" index 0 u 1:4 t "OFF" with linespoints, \
>>> "" index 1 u 1:4 t "NEW" with linespoints, \
>>> "" index 2 u 1:4 t "VERIFIED" with linespoints,
>>> "" index 3 u 1:4 t "CERTIFIED" with linespoints
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Gnuplot-info mailing list
>>> Gnuplot-info@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>>
>>>
>>>    
>>>      
>>  
>>    
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gnuplot-info mailing list
> Gnuplot-info@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
>  


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Series labels from data file?

by stevecoh1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thomas Sefzick wrote:

> after extracting the source files, you ran 'configure'
>
> at the end of the output of this program it is listed
> which terminals will be built - together with some
> information what would be needed to include the
> missing terminals, e.g.:
>
> ** Configuration summary for gnuplot 4.3:
>
> gnuplot will be compiled with the following terminals:
>
> ...
>   gif terminal: yes (with animated gif)
> ...
>   aqua terminal (MacOS X): no
>   wxt terminal: no (requires C++, wxWidgets>2.6, cairo>0.9, pango>1.10)
>   cairo-based terminals: no (requires cairo>1.2, pango>1.10)
> ...
>
>  
>
okay, thanks, I'll look at that although I'm wondering how the
Redhat-distributed build of 4.0 manages to include those missing terminals.



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Series labels from data file?

by stevecoh1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Steve Cohen wrote:

> Thomas Sefzick wrote:
>  
>> after extracting the source files, you ran 'configure'
>>
>> at the end of the output of this program it is listed
>> which terminals will be built - together with some
>> information what would be needed to include the
>> missing terminals, e.g.:
>>
>> ** Configuration summary for gnuplot 4.3:
>>
>> gnuplot will be compiled with the following terminals:
>>
>> ...
>>   gif terminal: yes (with animated gif)
>> ...
>>   aqua terminal (MacOS X): no
>>   wxt terminal: no (requires C++, wxWidgets>2.6, cairo>0.9, pango>1.10)
>>   cairo-based terminals: no (requires cairo>1.2, pango>1.10)
>> ...
>>
>>  
>>
>>    
> okay, thanks, I'll look at that although I'm wondering how the
> Redhat-distributed build of 4.0 manages to include those missing terminals.
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gnuplot-info mailing list
> Gnuplot-info@...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
>  
And, even on Ubuntu (9.04), although gif, jpeg, png appear to be
supported, gnuplot is generating files that the system fails to
recognize as proper.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Series labels from data file?

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

for running the program, only the shared libraries are needed,
for compiling the header files are needed too.
(normally in the "lib...-dev" package)

Steve Cohen wrote:
Thomas Sefzick wrote:
> after extracting the source files, you ran 'configure'
>
> at the end of the output of this program it is listed
> which terminals will be built - together with some
> information what would be needed to include the
> missing terminals, e.g.:
>
> ** Configuration summary for gnuplot 4.3:
>
> gnuplot will be compiled with the following terminals:
>
> ...
>   gif terminal: yes (with animated gif)
> ...
>   aqua terminal (MacOS X): no
>   wxt terminal: no (requires C++, wxWidgets>2.6, cairo>0.9, pango>1.10)
>   cairo-based terminals: no (requires cairo>1.2, pango>1.10)
> ...
>
>  
>
okay, thanks, I'll look at that although I'm wondering how the
Redhat-distributed build of 4.0 manages to include those missing terminals.



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Parent Message unknown Invalid Graphics Files generated : WAS: Re: Series labels from data file?

by stevecoh1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Steve Cohen wrote:

> t.sefzick wrote:
>> On Fri, Oct 30, 2009 at 03:31:34PM +0100, Steve Cohen wrote:
>>> Sorry to keep bugging you but I feel that I am on the cusp of getting
>>> something running that's really useful and it's driving me crazy that
>>> I'm not quite there.
>>>
>>> Speaking now of Ubuntu, where I have complete control of the system, I
>>> wonder why gif, png, and jpeg appear to be supported, yet do not
>>> generate usable files. I don't know what "libgd with gif support" etc.
>>> actually means. What form does this "support" take?
>>
>> some 'libgd' versions came without the ability to produce gif-files
>> due to licence problems. this has changed now, so actual 'libgd'
>> versions
>> are able to produce gif-files (that's meant by 'support').
>> the configure-program searches for the installed gd-lib and depending
>> on it's capabilities prepares the compilation process to compile
>> the png-, jpeg- and (eventually) gif-terminal.
>>
>> what du you mean by 'do not generate usable files'?
>> do the following gnuplot-commands
>>
>> set term gif
>> set out 'tmp.gif'
>> test
>> set out
>>
>> not produce a readable gif-file?
>>
>
> correct.
> "Could not load image 'getcallstats.gif'. File does not appear to be a
> GIF file"
> "Could not load image 'getcallstats.png'. Fatal error reading PNG
> image file: Not a PNG file"
> "Could not load image 'getcallstats.jpeg'. Error interpreting JPEG
> image file (Not a JPEG file: starts with 0x0a 0x23).
>
> These were all generated by gnuplot 4.5 built from CVS on Ubuntu 9.04.
>

Additional results.
I have now been able to compile a version of gnuplot 4.5 on RHEL 5.3
with the approprate libgd support. However results are unreliable.
Sometimes viable GIF and JPEG files are created, other times the files
created are rejected by viewer apps. Since these results are seen on two
different platforms, I wonder if it is a bug in 4.5?



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Invalid Graphics Files generated : WAS: Re: Series labels from data file?

by stevecoh1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Steve Cohen wrote:

> Steve Cohen wrote:
>  
>> t.sefzick wrote:
>>    
>>> On Fri, Oct 30, 2009 at 03:31:34PM +0100, Steve Cohen wrote:
>>>      
>>>> Sorry to keep bugging you but I feel that I am on the cusp of getting
>>>> something running that's really useful and it's driving me crazy that
>>>> I'm not quite there.
>>>>
>>>> Speaking now of Ubuntu, where I have complete control of the system, I
>>>> wonder why gif, png, and jpeg appear to be supported, yet do not
>>>> generate usable files. I don't know what "libgd with gif support" etc.
>>>> actually means. What form does this "support" take?
>>>>        
>>> some 'libgd' versions came without the ability to produce gif-files
>>> due to licence problems. this has changed now, so actual 'libgd'
>>> versions
>>> are able to produce gif-files (that's meant by 'support').
>>> the configure-program searches for the installed gd-lib and depending
>>> on it's capabilities prepares the compilation process to compile
>>> the png-, jpeg- and (eventually) gif-terminal.
>>>
>>> what du you mean by 'do not generate usable files'?
>>> do the following gnuplot-commands
>>>
>>> set term gif
>>> set out 'tmp.gif'
>>> test
>>> set out
>>>
>>> not produce a readable gif-file?
>>>
>>>      
>> correct.
>> "Could not load image 'getcallstats.gif'. File does not appear to be a
>> GIF file"
>> "Could not load image 'getcallstats.png'. Fatal error reading PNG
>> image file: Not a PNG file"
>> "Could not load image 'getcallstats.jpeg'. Error interpreting JPEG
>> image file (Not a JPEG file: starts with 0x0a 0x23).
>>
>> These were all generated by gnuplot 4.5 built from CVS on Ubuntu 9.04.
>>
>>    
>
> Additional results.
> I have now been able to compile a version of gnuplot 4.5 on RHEL 5.3
> with the approprate libgd support. However results are unreliable.
> Sometimes viable GIF and JPEG files are created, other times the files
> created are rejected by viewer apps. Since these results are seen on two
> different platforms, I wonder if it is a bug in 4.5?
>
>  
Actually, to answer your original question, I'm finding that the .gif,
.jpeg, and .png files generated by the test command in the various
terminal modes do produce readable files, the but the files produced by
the plot command are often (but not always) unreadable.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Parent Message unknown Re: Invalid Graphics Files generated : WAS: Re: Series labels from data file?

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

if you
'set output some_filename.jpg'
and then
'set table'
the table goes to the file,
'unset table'
'plot something....'
and then the graphics-output is appended.
that's why your graphic files are corrupt: they have
the human readable data table in front.

you should:
'set term'
'set table'
# do the dummy plot
'unset table'
'set output some_filename.jpg'
'plot ...'
'set output'

On Sat, Oct 31, 2009 at 12:51:45AM +0100, Steve Cohen wrote:

> Aargh.  Thunderbird mangled my "table".
>
> Let me try a text description instead
>
> In the Iterative folder the data file contains a single run of data.
> The script that processes it uses the "plot for [i in datasetnames"
> notation (gnuplot 4.5).  The script produces a non-readable jpeg file.
>
> In the NonIterative folder, the data is the same but with double
> line-feeds manually inserted.  The script uses the hardcoded series
> names and is gnuplot 4.0 compatible.  The script produces a readable
> jpeg file.
>
> Both scripts were run on their respective datasets in separate command
> line instances:
>     gnuplot-4.5 <scriptfile>
>
> This leads me to the conclusion that the bug is in the iterative (plot
> for) mechanism itself, perhaps in conjunction with the terminal stuff.
>
>
>
>
> Steve Cohen wrote
> > ...
> >
> > Steve Cohen wrote:
> >> Steve Cohen wrote:
> >>
> >>> Steve Cohen wrote:
> >>>
> >>>> t.sefzick wrote:
> >>>>
> >>>>> On Fri, Oct 30, 2009 at 03:31:34PM +0100, Steve Cohen wrote:
> >>>>>
> >>>>>> Sorry to keep bugging you but I feel that I am on the cusp of
> >>>>>> getting
> >>>>>> something running that's really useful and it's driving me crazy
> >>>>>> that
> >>>>>> I'm not quite there.
> >>>>>>
> >>>>>> Speaking now of Ubuntu, where I have complete control of the
> >>>>>> system, I
> >>>>>> wonder why gif, png, and jpeg appear to be supported, yet do not
> >>>>>> generate usable files. I don't know what "libgd with gif support"
> >>>>>> etc.
> >>>>>> actually means. What form does this "support" take?
> >>>>>>
> >>>>> some 'libgd' versions came without the ability to produce gif-files
> >>>>> due to licence problems. this has changed now, so actual 'libgd'
> >>>>> versions
> >>>>> are able to produce gif-files (that's meant by 'support').
> >>>>> the configure-program searches for the installed gd-lib and depending
> >>>>> on it's capabilities prepares the compilation process to compile
> >>>>> the png-, jpeg- and (eventually) gif-terminal.
> >>>>>
> >>>>> what du you mean by 'do not generate usable files'?
> >>>>> do the following gnuplot-commands
> >>>>>
> >>>>> set term gif
> >>>>> set out 'tmp.gif'
> >>>>> test
> >>>>> set out
> >>>>>
> >>>>> not produce a readable gif-file?
> >>>>>
> >>>>>
> >>>> correct.
> >>>> "Could not load image 'getcallstats.gif'. File does not appear to
> >>>> be a GIF file"
> >>>> "Could not load image 'getcallstats.png'. Fatal error reading PNG
> >>>> image file: Not a PNG file"
> >>>> "Could not load image 'getcallstats.jpeg'. Error interpreting JPEG
> >>>> image file (Not a JPEG file: starts with 0x0a 0x23).
> >>>>
> >>>> These were all generated by gnuplot 4.5 built from CVS on Ubuntu 9.04.
> >>>>
> >>>>
> >>> Additional results.
> >>> I have now been able to compile a version of gnuplot 4.5 on RHEL 5.3
> >>> with the approprate libgd support. However results are unreliable.
> >>> Sometimes viable GIF and JPEG files are created, other times the
> >>> files created are rejected by viewer apps. Since these results are
> >>> seen on two different platforms, I wonder if it is a bug in 4.5?
> >>>
> >>>
> >> Actually, to answer your original question, I'm finding that the
> >> .gif, .jpeg, and .png files generated by the test command in the
> >> various terminal modes do produce readable files, the but the files
> >> produced by the plot command are often (but not always) unreadable.
> >>
> >>
> >> ------------------------------------------------------------------------------
> >>
> >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> >> is the only developer event you need to attend this year. Jumpstart your
> >> developing skills, take BlackBerry mobile applications to market and
> >> stay ahead of the curve. Join us from November 9 - 12, 2009. Register
> >> now!
> >> http://p.sf.net/sfu/devconference
> >> _______________________________________________
> >> Gnuplot-info mailing list
> >> Gnuplot-info@...
> >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >>
> >>
> >>
> >
>



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  _____ _   _  ___  __  __   _   ___
 |_   _| |_| |/ _ \|  \/  | / \ / __|    Thomas Sefzick
   |_|_|  _  | (_) | |\/| |/ A \\__ \    Forschungszentrum Juelich
  /|_|_|_| |_|\___/|_|  |_|_/-\_____/    D-52425 Juelich
 | (___  ____ _______  ___  ___ _  __    Germany
  \___ \| __/| __/_  /|_ _|/ __| |/ /    phone: +49-2461-61-4337
  ____) | _| | _| / /_ | |( (__|   (       fax:            -3930
 |_____/|___||_| /____|___|\___|_|\_\    email: t.sefzick@...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info