cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Chart Component Error

MSRAZA
10-Marble

Chart Component Error

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

chart_component_error..png

 

7 REPLIES 7
Werner_E
25-Diamond I
(To: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.

Werner_E_0-1732897037068.png

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

MSRAZA
10-Marble
(To:Werner_E)

I appreciate you fixing the graph.

Are there any ideas for drawing a tangent on the plotted graph?

Thanks.

MSRAZA

Werner_E
25-Diamond I
(To: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.

Werner_E_0-1732903792404.png

BTW, font size and line width are set to the maximum allowed in the above plot 😉

 

MSRAZA
10-Marble
(To:Werner_E)

Thank you for the suggestion.

The question was general and did not request a target tangent for any particular curve.

Thanks.

Werner_E
25-Diamond I
(To:MSRAZA)

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:

Werner_E_0-1732907478527.png

Prime 10 sheet attached

ttokoro
20-Turquoise
(To:Werner_E)

I also never use Chart component.  Small chart size increase the font and plot size.

image.png

Werner_E
25-Diamond I
(To:ttokoro)



Small chart size increase the font and plot size.

 


No! Here is what I experience when I size the plot as small as allowed

Werner_E_0-1732929267745.png

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.

 

Announcements

Top Tags