KNOWLEDGEBASE - ARTICLE #1678

How to change all axis or graph titles at once

Prism's Magic lets you change the formatting of many graphs at once. But note that "Magic" changes the font and color of text, but doesn't  change the wording of the axis titles. 

It is easy to write a script to change all the titles at once. For example, this script changes the (left)  Y axis title of all graphs to  "Signal":

Goto G
ForEachSheet
  SetAxisTitle Y, "Signal"
Next

The first line says to go to the graph section.

The second line starts a loop to deal with every graph in the file.

The third line changes the Y title to "Signal". If you wanted to change the X titles, you would use this syntax:  SetAxisTitle X, "Time".

Here is an example that changes the overall graph titles of all graphs.  

Goto G
ForEachSheet
  SetGraphTitle Y, "Time Course"
Next

Explore the Knowledgebase

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