KNOWLEDGEBASE - ARTICLE #1797

Can I label the Y-axis of all of the graphs in my project at once?

In some cases, it may be convenient to set the Y-axis label for a number of Prism graphs at the same time.  This would be the case if you have a large number fo graphs to label.  A Prism script can perform this task very easily.

This is an example Prism script that will change all of the Y-axis titles:


GoTo G

ForEachSheet

   SetAxisTitle Y "Response"

Next

Save


You can download the example Prism script file discussed above here.

To edit this file, go to the "Run Script" menu and select "Open Prism Script".  Then select the script file.  Prism will open the script file in the Prism script editor.

  • You may want to change the axis that the script labels.  If you change Y to X, the script will now rename the X axis of all of the graphs
  • You may want to change what the script names the axis.  You can replace "Response" with your desired label.
    • Note: the quotations marks are necessary

To run this file, open the Prism file that you would like to set the axis titles on.  Wth the Prism file open, double click on the script file.  When the script has completed, all of the Y axes in the file should have the same title.  

  • Note: the script will automatically save the file when it has completed.  


Keywords: script scripting Y-axis label Y axis

Explore the Knowledgebase

Analyze, graph and present your scientific work easily with GraphPad Prism. No coding required.