From profit at quansoft.com  Mon Oct  1 09:50:25 2012
From: profit at quansoft.com (pro Fit Support)
Date: Mon, 1 Oct 2012 16:50:25 +0200
Subject: [proFit-list] parametric curves
In-Reply-To: <E09C4209-7457-4AED-B649-D37F6A86D782@fusemail.com>
References: <E09C4209-7457-4AED-B649-D37F6A86D782@fusemail.com>
Message-ID: <3514E20D-0841-4D8D-B865-38CDCC3A4CB8@quansoft.com>

Dear Chris

Check out the Lissajous example files that you will find under
Example Files/Programming 4 - drawing/

They basically restart to issuing a series of MoveTo/LineTo statements into the drawing window. In other words, they generate a polygon in the drawing window.

If you want to to the same as a curve within the graph, you must bracket the calls to MoveTo/LineTo within calls to OpenCurve() and CloseCurve().

Hope this helps

Kurt Sutter
QuantumSoft



On 28 Sep 2012, at 2:02, Chris Lee <laserboy at fusemail.com> wrote:

> Hi All,
> 
> Is there a simple way to plot a parametric curve? So, for instance:
> 
> from numpy import cos, sin
> def lisajFigures(t, A, omega_a, B, omega_B):
> 	x = A*cos(omega_a*t)
> 	y = B*sin(omega_b*t)
> 	return x, y
> 
> Now, I am not interested in x vs t or y vs t, but x vs y. I can't think of a good way to do this other than to tabulate and plot the data? Is there something better?
> 
> Cheers
> Chris
> 
> 
> 
> 
> _______________________________________________
> proFit-list mailing list
> proFit-list at quantum-soft.com
> http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com



From acbev at lanl.gov  Fri Nov  2 09:52:44 2012
From: acbev at lanl.gov (Beveridge, Andrew Cameron)
Date: Fri, 2 Nov 2012 14:52:44 +0000
Subject: [proFit-list] Programming Questions
Message-ID: <A4DED71AA7DDA6419F637BD9D295DAF02D204F20@ECS-EXG-P-MB05.win.lanl.gov>

I have run into a bit of programming/plotting difficulties and was wondering whether anyone had any suggestions.

Question 1

I am plotting my data using the option colorEncodePoints True, that is, the data points are to be color coded according to their z-value. How do I display the z legend, the one with the color scheme programmatically? (This axis is different from the option for the z-axis in the contour plot.)

Question 2

For my y-axis, I would like to use a "text" column. (The column has a list of file names.) It appears that proFit does not allow the y-axis to be a text column. One way around this problem is to choose the "Row Index" as the y-axis and then replace it with a  Category Axis; this does seem to work. Is there any way to do this programmatically, that is, set a new category axis in a program?

Thanks for your help.

Cheers,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://quantum-soft.com/pipermail/profit-list_quantum-soft.com/attachments/20121102/9f636866/attachment.html>

From profit at quansoft.com  Mon Nov  5 05:23:42 2012
From: profit at quansoft.com (pro Fit Support)
Date: Mon, 5 Nov 2012 12:23:42 +0100
Subject: [proFit-list] Programming Questions
In-Reply-To: <A4DED71AA7DDA6419F637BD9D295DAF02D204F20@ECS-EXG-P-MB05.win.lanl.gov>
References: <A4DED71AA7DDA6419F637BD9D295DAF02D204F20@ECS-EXG-P-MB05.win.lanl.gov>
Message-ID: <739D0836-DD8E-4475-A5B1-9647E6498C52@quansoft.com>

Dear Andrew

These are good questions.

As to question 1: There is no way, presently, to programmatically display the colour legend. The best you could do is to save a drawing document with a graph in it that has a colour legend as you want to have it. Remove all plots from the graph. For plotting, then open the document from your script, and then plot into its graph.

As to question 2: The GUI does not allow to use non-numeric y-columns. However, you can issue a PlotData command with the parameter yColumn indicating a text column.

Hope this helps.

Kurt Sutter
QuantumSoft

On 2 Nov 2012, at 3:52, "Beveridge, Andrew Cameron" <acbev at lanl.gov> wrote:

> I have run into a bit of programming/plotting difficulties and was wondering whether anyone had any suggestions.
> 
> Question 1
> 
> I am plotting my data using the option colorEncodePoints True, that is, the data points are to be color coded according to their z-value. How do I display the z legend, the one with the color scheme programmatically? (This axis is different from the option for the z-axis in the contour plot.)
> 
> Question 2
> 
> For my y-axis, I would like to use a "text" column. (The column has a list of file names.) It appears that proFit does not allow the y-axis to be a text column. One way around this problem is to choose the "Row Index" as the y-axis and then replace it with a  Category Axis; this does seem to work. Is there any way to do this programmatically, that is, set a new category axis in a program?
> 
> Thanks for your help.
> 
> Cheers,
> Andrew
> _______________________________________________
> proFit-list mailing list
> proFit-list at quantum-soft.com
> http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://quantum-soft.com/pipermail/profit-list_quantum-soft.com/attachments/20121105/acfd0de1/attachment.htm>

From acbev at lanl.gov  Mon Nov  5 09:33:53 2012
From: acbev at lanl.gov (Beveridge, Andrew Cameron)
Date: Mon, 5 Nov 2012 15:33:53 +0000
Subject: [proFit-list] Programming Questions
In-Reply-To: <739D0836-DD8E-4475-A5B1-9647E6498C52@quansoft.com>
References: <A4DED71AA7DDA6419F637BD9D295DAF02D204F20@ECS-EXG-P-MB05.win.lanl.gov>
	<739D0836-DD8E-4475-A5B1-9647E6498C52@quansoft.com>
Message-ID: <A4DED71AA7DDA6419F637BD9D295DAF02D20D50A@ECS-EXG-P-MB05.win.lanl.gov>

Thanks for your help.

Cheers,
Andrew


On Nov 5, 2012, at 4:23 AM, pro Fit Support wrote:

Dear Andrew

These are good questions.

As to question 1: There is no way, presently, to programmatically display the colour legend. The best you could do is to save a drawing document with a graph in it that has a colour legend as you want to have it. Remove all plots from the graph. For plotting, then open the document from your script, and then plot into its graph.

As to question 2: The GUI does not allow to use non-numeric y-columns. However, you can issue a PlotData command with the parameter yColumn indicating a text column.

Hope this helps.

Kurt Sutter
QuantumSoft

On 2 Nov 2012, at 3:52, "Beveridge, Andrew Cameron" <acbev at lanl.gov<mailto:acbev at lanl.gov>> wrote:

I have run into a bit of programming/plotting difficulties and was wondering whether anyone had any suggestions.

Question 1

I am plotting my data using the option colorEncodePoints True, that is, the data points are to be color coded according to their z-value. How do I display the z legend, the one with the color scheme programmatically? (This axis is different from the option for the z-axis in the contour plot.)

Question 2

For my y-axis, I would like to use a "text" column. (The column has a list of file names.) It appears that proFit does not allow the y-axis to be a text column. One way around this problem is to choose the "Row Index" as the y-axis and then replace it with a  Category Axis; this does seem to work. Is there any way to do this programmatically, that is, set a new category axis in a program?

Thanks for your help.

Cheers,
Andrew
_______________________________________________
proFit-list mailing list
proFit-list at quantum-soft.com<mailto:proFit-list at quantum-soft.com>
http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com

_______________________________________________
proFit-list mailing list
proFit-list at quantum-soft.com<mailto:proFit-list at quantum-soft.com>
http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://quantum-soft.com/pipermail/profit-list_quantum-soft.com/attachments/20121105/18e1d343/attachment.htm>

From riki80 at rediffmail.com  Thu Nov 29 05:08:03 2012
From: riki80 at rediffmail.com (riki)
Date: 29 Nov 2012 11:08:03 -0000
Subject: [proFit-list] =?utf-8?q?Batch_plotting_of_vector_field_plots_by_s?=
	=?utf-8?q?cript?=
Message-ID: <20121129110803.3439.qmail@f4mail-235-131.rediffmail.com>

Hi all,



I am wondering if there is a way (I'm sure there will be) to plot many (say one hundred) vector or scatter 

plots by Apple Script. Suppose I have a number of data files with different names and want to plot (2D) 

from data of column m and column n from each file. Moreover I also want to specify the axes labels, range, 

legends, etc. I can do all these things with Gnuplot by writing a script. But I do not how to do with Pro Fit. I 

am preferring plots of Pro Fit because they have very good quality than others. So could anybody tell me 

how to write a Apple Script (or Python program) to do batch plotting? Please take the case of vector field 

plots as it is some what more non-trivial. Thanking you.



Kind Regards,

Riki 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://quantum-soft.com/pipermail/profit-list_quantum-soft.com/attachments/20121129/ea650922/attachment.html>

From kurt at quansoft.com  Thu Dec 20 22:38:38 2012
From: kurt at quansoft.com (Kurt Sutter)
Date: Fri, 21 Dec 2012 05:38:38 +0100
Subject: [proFit-list] Batch plotting of vector field plots by script
In-Reply-To: <20121129110803.3439.qmail@f4mail-235-131.rediffmail.com>
References: <20121129110803.3439.qmail@f4mail-235-131.rediffmail.com>
Message-ID: <4D3D66DD-BAD2-4C20-AAC3-11F421DEAB31@quansoft.com>

Dear Riki

I have just seen that your enquiry has gone unanswered. I apologise for that... Anyway, look at the example files that come with pro Fit. Under 

Example Files/AppleScript/batch processing.applescript

you will find an example for processing files from AppleScript. And under

Example Files/Python/Process Directory.func

you will find a similar Python script.

You can modify any of these scripts to create a plot of each processed file. To get you started with that, use pro Fit recording function from either a script window within pro Fit (hit the recording button in the toolbar of the window) or from AppleScript Editor (again, hit the recording button from the toolbar of the AppleScript Editor window). Once you have started recording, create a plot "by hand" from within pro Fit, and the corresponding scripting commands (in Python or AppleScript) are recorded automatically.

Good luck.

Best regards

Kurt Sutter
QuantumSoft


On 29. Nov 2012, at 12:08, riki <riki80 at rediffmail.com> wrote:

> Hi all,
> 
> I am wondering if there is a way (I'm sure there will be) to plot many (say one hundred) vector or scatter 
> plots by Apple Script. Suppose I have a number of data files with different names and want to plot (2D) 
> from data of column m and column n from each file. Moreover I also want to specify the axes labels, range, 
> legends, etc. I can do all these things with Gnuplot by writing a script. But I do not how to do with Pro Fit. I 
> am preferring plots of Pro Fit because they have very good quality than others. So could anybody tell me 
> how to write a Apple Script (or Python program) to do batch plotting? Please take the case of vector field 
> plots as it is some what more non-trivial. Thanking you.
> 
> Kind Regards,
> Riki 
> 
> 
> Catch India as it happens with the Rediff News App. To download it for FREE, click here
> _______________________________________________
> proFit-list mailing list
> proFit-list at quantum-soft.com
> http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://quantum-soft.com/pipermail/profit-list_quantum-soft.com/attachments/20121221/ff631326/attachment.html>

