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


To create this file, go to the "Run Script" menu and select "New Script".  Then select Start from: Blank script.  Copy and paste the script above into 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.  With 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.