08-11-2021 02:39 PM
Is there a way to display the channels used for the x-axis in the legend? I am plotting stress strain curves and they use a common Y axis with differing X axes. An alternative would be to swap the display of the x and y axes (this would also be a useful option - quickly swap axes)
08-13-2021 04:06 AM
Hi Capps,
Yes, it is possible to display the X channel. You can add these variables to the legend:
[@@CurrGroupIdx@@]/@@CurrXChnName@@
Greetings
Walter
08-13-2021 11:11 AM
Hi Walter,
Thanks for the reply. That works for displaying a common x-axis variable but I am plotting several curves that use a common y-axis variable but different x-axis variables. The approach that you suggest only displays the x-variable for the last curve. Below is a screenshot showing an example of what I am trying to achieve. The only workaround that I was able to find was to keep the strains on the y axis and rotate the text in all elements 90 degrees and adjust the axis locations to get the x axis to appear as the y axis and vice versa. While this works to some degree, there are limitations. It requires some fiddling with the axes to get them to line up correctly and the plots need to be rotated 90 degrees after exporting them.
Thanks in advance for any suggestions that you may have.
Chris
08-30-2021 02:42 AM
Hi Chris,
Here is another way for your request. You can define your own legend. For this we have an example called “2D Tables as Legend and Legend for Axis System Labeling”. I have modified it to show the result for your case. In the end you use the command “CurveSnippet” to create the legend symbol and read out the entries of your 2D axis system.
Greetings
Walter