[Kst] question on generating plots from the command line

Barth Netterfield barth.netterfield at utoronto.ca
Tue Oct 20 19:08:27 UTC 2015


I hope to get the python for windows stuff working 'soon'.

In the mean time you can do it from the GUI:
right click on a plot -> Edit -> Labels: [x] Show legend  Then OK.

cbn

On October 20, 2015 07:41:24 AM Dan Field wrote:

> Nicolas:
> 
> I did find the link, but thanks for following it up.  I wasn't aware
> that this doesn't work for windows though, this will be a non-starter.
> Perhaps Barth can let us know how to get scripting working under windows.
> 
> Best,
>     Dan
> 
> On 10/19/2015 1:47 PM, Nicolas Brisset wrote:
> > Hi Dan,
> > 
> > Sirry for the late reply. I hope you have found the link in the
> > meantime, otherwise please check this page:
> > https://kst-plot.kde.org/pykst/index.html
> > 
> > I believe it has the most current documentation on scripting, though
> > I'm not 100% sure. Maybe Barth knows better?
> > @Barth: I also read recently that you got scripting working under
> > Windows: that's great! How did you achieve this?
> > 
> > Nicolas
> > 
> > ------------------------------------------------------------------------
> > 
> >     *De: *"Dan Field" <dan_field at hotmail.com>
> >     *À: *"Nicolas Brisset" <nicolas.brisset at free.fr>, kst at kde.org
> >     *Envoyé: *Lundi 12 Octobre 2015 00:12:14
> >     *Objet: *Re: [Kst] question on generating plots from the command line
> >     
> >     Nicolas:
> >     
> >     Thanks for this... can you send me a pointer for learning about
> >     how to use the scripting interface?
> >     
> >     Best,
> >     
> >         Dan
> >     
> >     On 10/11/2015 12:52 PM, Nicolas Brisset wrote:
> >         Hi Dan,
> >         
> >         I'm not really sure as I rarely use the command line. But you
> >         should be able to do what you're asking for (and much more)
> >         using the python scripting interface.
> >         
> >         Nicolas
> >         
> >         ------------------------------------------------------------------
> >         ------
> >         
> >             *De: *"Dan Field" <dan_field at hotmail.com>
> >             *À: *kst at kde.org
> >             *Envoyé: *Mercredi 7 Octobre 2015 19:45:49
> >             *Objet: *[Kst] question on generating plots from the
> >             command line
> >             
> >             Hi All:
> >             
> >             If I generate a plot from the command line like:
> >                 kst2 <filename> -x Time -P PlotName -y Field1 -y Field2
> >             
> >             I get a single plot with 2 xy graphs, Time vs Field1 and
> >             Time vs
> >             Field2.  However, there's no way to distinguish which of
> >             the differently
> >             colored lines being graphed belong to Time vs Field1 and
> >             which belongs
> >             to Time vs Field2.  Are there some command lines that I'm
> >             missing that
> >             allow me to create a legend or some other way to do so?
> >             
> >              Is there some
> >             
> >             way to show the plot name (in this case "PlotName") on the
> >             actual plot
> >             and not part of an axis label?
> >             
> >             Thanks in advance for your help.
> >             
> >             Best,
> >             
> >                 Dan
> >             
> >             _______________________________________________
> >             Kst mailing list
> >             Kst at kde.org
> >             https://mail.kde.org/mailman/listinfo/kst

-- 
C. Barth Netterfield
416-845-0946



More information about the Kst mailing list