how to plot a graph with Y axis centered at the middle of X axis?

hi, friend

just like the topic, is there anyone who could tell me how to plot graphs with centered axises?

Thank you very much!

Please see the attached graph, “axis form. jpg ”

I found that the axis " free position" option is in gray mode and inaccessible.
Here is an example:

Make ddd = p - 50
SetScale/P x, -50, 1, ddd
Display/L=VertCrossing/B=HorizCrossing ddd


The first two lines just create a data wave that has a range such that a 4 quadrant graph makes sense. The last line creates the graph.

If you're using the New Graph dialog, you'll want to click on the Axis popup menu for the Y wave and select L=VertCrossing. This should cause the Axis popup menu for the X wave to switch to B=HorizCrossing.


Thank you!

In the normal way to plot a graph, the axis will meet at the left-bottom. In this case, is there any way to move the axis to a desired position freely?

Just as mentioned, the "axis free position" in the pop up menu when double click the axis , is in gray and can not be accessed.

Thank you again!

best!
yuchxue wrote:
In the normal way to plot a graph, the axis will meet at the left-bottom. In this case, is there any way to move the axis to a desired position freely?

Just as mentioned, the "axis free position" in the pop up menu when double click the axis , is in gray and can not be accessed.


You can't move the main left and bottom axes, because they aren't free axes. Using the example of aclight you can choose the position of these axes.
The easiest way to center or move an axis in igor pro is to save the file as an .eps file and then move it manually in adobe illustrator or any vector based graphics program. This is also a good way to get the font size and number of your tick marks just right and space the graphs. Usually if you have more than one panel in a figure you're going to have to put them together in illustrator anyway. If you happen to just need the zero axis, you can also click on "ticks and grids" and add "zero line"
phd05 wrote:
The easiest way to center or move an axis in igor pro is to save the file as an .eps file and then move it manually in adobe illustrator or any vector based graphics program.


Moving an axis in adobe illustrator is definitely not the easiest way to move an axis in Igor pro... ;)
Quote:
In the normal way to plot a graph, the axis will meet at the left-bottom. In this case, is there any way to move the axis to a desired position freely?


If you have an existing graph and want to change it to crossing axes, close the graph and save a recreation macro. Then open the procedure window (Windows->Procedure Windows->Procedure Window) and add the /L=VertCrossing/B=HorizCrossing flags to the display command. Then run the recreation macro (Windows->Graph Macros->Graph0).

For details on recreation macros, execute this:

DisplayHelpTopic "Saving a Window as a Recreation Macro"