Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

08-25-2011
02:14 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-25-2011
02:14 PM

How can I Adjust graph grid paramaters using a calculation.

I created several calculation sheet where I have to constantly adjust the graph grid settings to make the document presentable. I would like to calculate those settings automatically. Is this possible?

11 REPLIES 11

08-25-2011
04:18 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-25-2011
04:18 PM

Sevastien,

The limits on a graph do not have to be numbers, they can be set using variables, or equations. So can the markers.

Sometimes I will create a vector of the values of a function using range variables and then use the max and min functions to get the limits (plus a little). This can be written as a program and then the function just placed in the limit placeholders on the graph.

Sometimes I will actually plot the vector of values rather than let Mathcad select the number of points, then I can increase accuracy or decrease to save time, depending on what I need.

The grid lines cannot be programmed. You can draw your own gridlines, but its a little more work.

If you want to do more than this, perhaps you could post an example of your calculations.

Wayne

08-25-2011
04:33 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-25-2011
04:33 PM

Good suggestion, I could draw the line myself. But then that will show in the legend... not very clean in the end product I hope there is a better way.

08-25-2011
05:04 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-25-2011
05:04 PM

I thought I posted this, but I guess not.

Attached is a file from Richard Jackson, from a discussion about plotting a grid or a structure on a graph.

This will result in only one trace in the Legend. That will give you a place to note the increment, so it might work to your advantage.

08-25-2011
06:32 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-25-2011
06:32 PM

Yes, you are right that is cleaner like this, true.

How about through Scripting can we access the graph option parameters?

08-25-2011
06:59 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-25-2011
06:59 PM

I don't know how, and from past discussions on this, I have not seen anyone present or even suggest how. I suppose that the information must be in the XML file, so If you are so inclined, and have the skills, I would guess that it could be done, but not by me. (Need to summon Richard or Phillip, or Stewart, or resurrect Tom)

If you pursue, please keep us informed

Wayne

08-26-2011
09:39 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-26-2011
09:39 AM

How about through Scripting can we access the graph option parameters?

Unfortunately, no. Not even via the regions XML, because the XML of only math regions can be accessed through scripting, and a graph is not a math region.

08-26-2011
03:16 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-26-2011
03:16 AM

A few alternatives to the worksheet Wayne uploaded.

Mike

08-25-2011
04:20 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-25-2011
04:20 PM

Sebastien Billaut wrote:

Up to a point.

The attached graph will rescale the ordinate and abcissa when the plot values change. You can also program and recalculate the markers. Grid spacings is a "bridge too far!"

08-25-2011
04:28 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-25-2011
04:28 PM

Thanks for your answer, but yes I am talking about the number of grid lines. I am already using variables to adjust everything else markers and boundaries....

I was wondering if this graph setting could be access through programming.

08-26-2011
03:07 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-26-2011
03:07 AM

Thanks for your answer, but yes I am talking about the number of grid lines. I am already using variables to adjust everything else markers and boundaries....

I was wondering if this graph setting could be access through programming.

It can't be done with programming. To be honest I believe it would take too much effort to get it working and don't know if it can actually be done.

Mike

08-26-2011
03:21 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-26-2011
03:21 AM

Hello!

See also the topic "**Plotting a Grid or a Structure on a Graph**": http://communities.ptc.com/message/164979