Powerful math software needs to do more than just execute calculations accurately. It should also help you visualize and communicate your results effectively. That’s why the Chart Component in PTC Mathcad Prime is so exciting. It can create beautiful 2D data plots, with enhanced ability to configure and control everything about their appearance.
To demonstrate what the Chart Component can do, I’m going to re-create a plot I created for an earlier article. In one of my March Madness articles, I analyzed the Final Four by seed and region. Here is the plot I created:
You’ll notice that my axes are labelled with the columns of the source matrix. I created a Text Box to explain the colors and dragged it on top of the plot. Let’s see how quickly and easily I can improve upon my previous work.
(By the way, if you’re used to creating XY Plots in Prime 4.0 and earlier versions, don’t worry, that’s still there. The new Chart Component just provides a more powerful alternative.)
I’ll open my worksheet in PTC Mathcad Prime. To insert a new plot, simply click the Chart Component utility, conveniently located on the Math tab.
The chart is created on my worksheet. At the top, I enter my inputs. If you want multiple traces, then you use a vector index (looks like a subscript) when listing out the Y plots. I want to use the same X-axis for all the traces, so I simply typed ‘X :=’ and what I wanted to use. As soon as you specify at least one X and one Y, your plot starts to take form.
Here are all four of my Y-axis traces as defined in the previous article:
I no longer need to see my input, so I will collapse that section:
Now it’s time to make it pretty. I double click on the chart. This opens the editor, which is incredibly intuitive. You can walk through the tabs and controls, and the preview in the main window updates immediately.
First, I’ll configure my title:
I can control the location, font, color, size, style, border, and background. You’ll see that you can configure these same items and more throughout the editor.
Next, I like my traces to “pop,” so I’ll configure those next. Although I didn’t use these options in my final product, here you can see where I added symbols to my data points and filled in the area under the graph:
After I change the trace colors, I add a legend. I position it to the side of my plot after changing the labels for each trace:
Lastly, I specify the ranges for my axes:
Here is my final image, ready to be placed in a document, article, or presentation:
Looks much better, doesn’t it?
This new Chart Component and its editor are easy to learn and fun to play with. This article only scratches the surface of what you can do in PTC Mathcad with plotting. There’s more capability on the Axes and Charts tabs for making your plots look exactly the way you want. The more attractive you’re able to present your data, the better you’ll communicate your points to your audience.