[proFit-list] use script to change z-axis properties

Yifan Song yfsong at gmail.com
Sat Nov 28 21:02:52 CST 2009


Thanks!
Don suggested the same work-around earlier with pre-making the color  
bar. I'll give it a try.
Best,
Yifan

On Nov 27, 2009, at 10:22 PM, pro Fit Support wrote:

> Yifan
>
> You've got a point here. There is presently no way to create that  
> color bar from a script.
>
> I propose to work around this by preparing an empty graph that has a  
> color bar by hand, and then use that for plotting from a script. For  
> example:
>
> 1. Create a graph with all the right settings and with the bar by  
> hand.
> 2. Remove the plot from the graph so the graph is empty (double- 
> click the graph, go to the tab "Plots" and hit the Delete button)
> 3. Save the resulting file, e.g. under the name Plot.plot in the  
> documents folder
> 4. Go to the the Finder, select the file Plot.plot, choose Get Info  
> from the File menu, and check "Stationary Pad"
> 5. Run the following script within pro Fit:
>
> 	OpenFile(file '~/Documents/Plot.plot');
> 	PlotData(.... newWindow false, newGraph false, ...)
>
> (If you want several graphs in a single window, your script could  
> then select the graph generated in the manner above, copy it, and  
> paste it into the desired window.)
>
> Best regards
>
> Kurt Sutter
>
>
>
> On 27. Nov 2009, at 6:10, Yifan Song wrote:
>
>> Hi,
>> I'm using the parameter colorscheme is to make the contour plot  
>> itself colored, but it doesn't give me the bar on the right, which  
>> I have to make manually. I'd like to have that done by the script  
>> as well, is there a way?
>> Here is my complete function call line, and I can't figure out what  
>> I'm missing.
>> Thanks!
>> Yifan
>>
>>
>> PlotData(
>> xAxisColumn 1,
>> yAxisColumn 2,
>> zAxisColumn 3,
>> window FrontmostWindow(dataType),
>> autoX true, autoY true,
>> xScaling linScaling, yScaling linScaling,
>> xAxis 1, yAxis 1,
>> newWindow false, newGraph true,
>> selRowsOnly false, drawErrors false,
>> connected false,
>> plotType scatterPlot,
>> curveOpacity 1, fillOpacity 1,
>> colorScheme 'red-white-blue-2',
>> zFirst -0.005, zLast 0.005,
>> zScl 0,
>> autoZ false,
>> drawColorPlot true,
>> drawContourPlot true,
>> drawPoints false,
>> pointsOpacity 1,
>> interpolationType interpolAutomatic,
>> extrapolate true);
>>
>> <Untitled Drawing 2.pdf>
>>
>> On Nov 26, 2009, at 8:52 PM, pro Fit Support wrote:
>>
>>> To do this by script:
>>>
>>> When issuing the PlotData or PlotFunction command, pass the  
>>> parameter "colorScheme", such as:
>>>
>>> PlotFunction(plotType functionContour, drawColorPlot True,  
>>> drawContourPlot True, colorScheme 'blue-red-green')
>>>
>>>
>>>
>>> Best regards
>>>
>>> Kurt Sutter
>>>
>>>
>>>
>>> On 26 Nov 2009, at 12:44, Yifan Song wrote:
>>>
>>>> Hi all,
>>>> I'm having trouble finding the right function that would allow me  
>>>> to draw the colored z-axis when plotting the contour map. Nothing  
>>>> shows up when I try to record turning on the box either. Does  
>>>> anyone know if it can be done by script?
>>>> Thanks!
>>>> Yifan
>>>>
>>>> --------------------------------------------------------------------------------------------
>>>> Yifan Song, Ph.D.
>>>> mailto: yfsong at u.washington.edu
>>>> Department of Biochemistry
>>>> J-405 Health Sciences Building
>>>> Box 357350
>>>> University of Washington
>>>> 1959 NE Pacific
>>>> Seattle WA 98195
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> proFit-list mailing list
>>>> 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
>>> http://quantum-soft.com/mailman/listinfo/profit-list_quantum- 
>>> soft.com
>>
>> _______________________________________________
>> proFit-list mailing list
>> 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
> 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/20091128/731044b5/attachment.html>


More information about the proFit-list mailing list