Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Plotting a graph with Chart_Component is giving me an error, but insert plot allows me to plot chat with ease. What is causing this error? Kindly help and suggest me a better way to plot if possible.
Also, kindly guide me on how to plot a tangent to a prior plotted graph.
Kindly find the attached document below.
Thanks and regards.
MSRAZA
I see at least three problems:
1) You have to use sigma.415 for Y[1 and not a manually defined new range
2) To get the same plot as shown in the native Prime Plot you have to swap X and Y for the second and third plot.
3) The Chart component has some advantages, but also many disadvantages. One of them is that it does not know anything about units (incomprehensible for an add-on to a software like Mathcad Prime). It just deals with the numbers it gets and in case of quantities in MPa this is the value in the standard unit Pa. It is therefore necessary to divide the values to be plotted by the desired unit MPa or at least by 10^6 so the data fits in the range you manually had set.
The fact that in my picture (and probably also when you open my worksheet) the axis scaling is so tiny and the thickness of the lines is so puny is because I am using a small notebook screen in high 4K resolution and therefore use a fairly high Windows zoom factor. This is not a problem for any common software nowadays except for the way the chart component was implemented by PTC, because it does not adapt to the Windows zoom factor used.
I assume that if you recalculate the sheet or click once into the component to open it, the problem will be solved for you and you will see larger numbers and thicker lines. Unfortunately there is no solution for my configuration other than not using the component at all 😉
Prime 10 file attached
I appreciate you fixing the graph.
Are there any ideas for drawing a tangent on the plotted graph?
Thanks.
MSRAZA
@MSRAZA wrote:
I appreciate you fixing the graph.
Are there any ideas for drawing a tangent on the plotted graph?
Thanks.
MSRAZA
Which tangent? Where and for which of the three curves?
Basically you would need the derivative of the corresponding function.
Or did you mean the vertical marker at 0.002 which is seen in the native plot?
I have not much experience with the Chart component because of its many drawbacks but I was not able to find something similar to the markers in the native plot. You may simulate it either by adding grid lines or you may add the vertical line as a fourth trace.
BTW, font size and line width are set to the maximum allowed in the above plot 😉
Thank you for the suggestion.
The question was general and did not request a target tangent for any particular curve.
Thanks.
Once you have a function - either by definition as your epsilon,true or by deriving it via interpolation from a couple of points like your stress values - you can always apply some simple math to get the equation for the tangent. Vertical tangents may need a special treatment 😉
Here is one way to do it:
Prime 10 sheet attached
I also never use Chart component. Small chart size increase the font and plot size.
Small chart size increase the font and plot size.
No! Here is what I experience when I size the plot as small as allowed
Font size and line thickness are unchanged from the OPs initial attachment and I guess will look OK in his config.
The problem, as already written, is the overall Windows scaling used in my configuration (small 15.6" notebook screen but 4K resolution). Windows suggest a scaling of 250% and the Chart component does not act accordingly. This is incomprehensible for current software nowadays, but not really surprising for me if you have followed the 'development' of Prime from the beginning.