<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks!<div>Don suggested the same work-around earlier with pre-making the color bar. I'll give it a try.</div><div>Best,</div><div>Yifan</div><div><br><div><div>On Nov 27, 2009, at 10:22 PM, pro Fit Support wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Yifan<div><br></div><div>You've got a point here. There is presently no way to create that color bar from a script.</div><div><br></div><div>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:</div><div><br></div><div>1. Create a graph with all the right settings and with the bar by hand.</div><div>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)</div><div>3. Save the resulting file, e.g. under the name Plot.plot in the documents folder</div><div>4. Go to the the Finder, select the file Plot.plot, choose Get Info from the File menu, and check "Stationary Pad"</div><div>5. Run the following script within pro Fit:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>OpenFile(file&nbsp;'~/Documents/Plot.plot');<br><span class="Apple-tab-span" style="white-space:pre">        </span>PlotData(.... newWindow false, newGraph false, ...)</div><div><br></div><div><div>(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.)</div><div><span class="Apple-style-span" style="font-size: 12px; "><div><br class="Apple-interchange-newline">Best regards</div><div><br class="webkit-block-placeholder"></div><div>Kurt Sutter</div><div><br class="webkit-block-placeholder"></div></span><br class="Apple-interchange-newline"> </div> <br><div><div>On 27. Nov 2009, at 6:10, Yifan Song wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div>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?</div><div>Here is my complete function call line, and I can't figure out what I'm missing.</div><div>Thanks!</div><div>Yifan</div><div><br></div><div><br><div><div>PlotData(</div><div>xAxisColumn 1,</div><div>yAxisColumn 2,&nbsp;</div><div>zAxisColumn 3,&nbsp;</div><div>window FrontmostWindow(dataType),&nbsp;</div><div>autoX true, autoY true,&nbsp;</div><div>xScaling linScaling, yScaling&nbsp;linScaling,&nbsp;</div><div>xAxis 1, yAxis 1,&nbsp;</div><div>newWindow false, newGraph true,&nbsp;</div><div>selRowsOnly false, drawErrors false,&nbsp;</div><div>connected false,&nbsp;</div><div>plotType scatterPlot,&nbsp;</div><div>curveOpacity 1, fillOpacity 1,&nbsp;</div><div>colorScheme 'red-white-blue-2',&nbsp;</div><div>zFirst -0.005, zLast 0.005,&nbsp;</div><div>zScl 0,&nbsp;</div><div>autoZ false,&nbsp;</div><div>drawColorPlot true,&nbsp;</div><div>drawContourPlot true,&nbsp;</div><div>drawPoints false,&nbsp;</div><div>pointsOpacity 1,&nbsp;</div><div>interpolationType interpolAutomatic,&nbsp;</div><div>extrapolate true);</div> <br></div><div></div></div></div><span>&lt;Untitled Drawing 2.pdf&gt;</span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div></div><div><br><div><div>On Nov 26, 2009, at 8:52 PM, pro Fit Support wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">To do this by script:<div><br></div><div>When issuing the PlotData or PlotFunction command, pass the parameter "colorScheme", such as:</div><div><br></div><div>PlotFunction(plotType&nbsp;functionContour, drawColorPlot&nbsp;True, drawContourPlot&nbsp;True, colorScheme&nbsp;'blue-red-green')<br><br></div><div><br></div><div><font class="Apple-style-span" size="3"><br></font><div><span class="Apple-style-span" style="font-size: 12px; "><div>Best regards</div><div><br class="webkit-block-placeholder"></div><div>Kurt Sutter</div><div><br class="webkit-block-placeholder"></div></span><br class="Apple-interchange-newline"> </div> <br><div><div>On 26 Nov 2009, at 12:44, Yifan Song wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div>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?</div><div>Thanks!</div><div>Yifan</div><div><br></div><div> <span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">--------------------------------------------------------------------------------------------</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">Yifan Song, Ph.D.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">mailto:&nbsp;<span class="Apple-style-span" style="color: rgb(0, 0, 238); "><a href="mailto:yfsong@sci.ccny.cuny.edu">yfsong@u.washington.edu</a></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">Department of Biochemistry</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">J-405 Health Sciences Building</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">Box 357350</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">University of Washington</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">1959 NE Pacific</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">Seattle WA 98195</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "><br></div></div></div></div></div></div></span></div></span><br class="Apple-interchange-newline"> </div><br></div>_______________________________________________<br>proFit-list mailing list<br><a href="mailto:proFit-list@quantum-soft.com">proFit-list@quantum-soft.com</a><br><a href="http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com">http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com</a><br></blockquote></div><br></div></div>_______________________________________________<br>proFit-list mailing list<br><a href="mailto:proFit-list@quantum-soft.com">proFit-list@quantum-soft.com</a><br><a href="http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com">http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com</a><br></blockquote></div><br></div></div></div>_______________________________________________<br>proFit-list mailing list<br><a href="mailto:proFit-list@quantum-soft.com">proFit-list@quantum-soft.com</a><br><a href="http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com">http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com</a><br></blockquote></div><br></div></div>_______________________________________________<br>proFit-list mailing list<br><a href="mailto:proFit-list@quantum-soft.com">proFit-list@quantum-soft.com</a><br>http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com<br></blockquote></div><br></div></body></html>