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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Mathcad Prime 6.0 Histogram BoxPlot Combo no longer works

Bill_Capehart
4-Participant

Mathcad Prime 6.0 Histogram BoxPlot Combo no longer works

Hi All 

 

We've been doing multi-element box-whisker/histogram/error-bar plots for a while in coursework and in the past it's worked well.  Recently we are no longer able to replicate the plots.  

An image of a working plot is here

Happy Plot.png

Alas, they now look like this (note the Box of the combined histogram boxplot has collapsed to a single line (or likely one where the width of the box is simply too small to see.  

Sad Plot.png

This happens on multiple machines and neither I nor my students can being back the old [preferred] way.  This was working in September of 2020 (for people joining late it is now February 2021)

 

Ideas?

 

Bill Capehart

SD School of Mines.

1 ACCEPTED SOLUTION

Accepted Solutions

Addendum

Here is a work-around I just found:

  1. create your "Box Trace" plot with the desired position at the x-axis. The plot is just a line
  2. add a second trace at the y-axis - I simply added a number (that way plotting a single point)
  3. Change the plot type of the new plot to "Column Trace" (other types may work OK, too)
    Suddenly the boxplot is drawn as it should be
  4. Delete the newly added trace, the boxplot will still show OK. But if you copy the plot region, it disappears.

Werner_E_0-1613483867631.png

 

I guess the Box Trace was as buggy in September 2020 as it is now in Feb 2021. It was thanks to additionally added plots that it worked as you expected.

 

View solution in original post

5 REPLIES 5

Are you sure that a sheet using the very same setting as the non-working example had worked in the past?

According to the help in a boxplot the x-axis should be a string or a vector of strings (silly enough if you want to combine it with other plots). It seems not to be intended to combine "Box Trace" plots with other types in one single plot .

The working example you show seems to only work OK because of the added error plot ant this still works OK these days, too.

Werner_E_0-1613480421515.png

Its a quite strange effect and I also experienced other strange effects when I test-drived the "Box Trace" feature in the past. It seems to be a buggy feature.

An example: After fiddling around with the example shown above, I tried the one given in the help:
https://support.ptc.com/help/mathcad/r6.0/en/index.html#page/PTC_Mathcad_Help%2Fto_create_a_box_plot.html%23wwID0EI1SGB

This is how it should look like according to the help:

Werner_E_3-1613481208634.png

This is what I got:

Werner_E_0-1613481855584.png

 

I created the whole plot from scratch and now I got this

Werner_E_1-1613481897308.png

 

My conclusion is that its better not to use the "Box Trace" plot at all and create boxplots if needed by other means.

 

If you trust that PTC will take your concerns seriously and that it will be of use, you can use the support link which VadimirN had provided - Good luck!

Addendum

Here is a work-around I just found:

  1. create your "Box Trace" plot with the desired position at the x-axis. The plot is just a line
  2. add a second trace at the y-axis - I simply added a number (that way plotting a single point)
  3. Change the plot type of the new plot to "Column Trace" (other types may work OK, too)
    Suddenly the boxplot is drawn as it should be
  4. Delete the newly added trace, the boxplot will still show OK. But if you copy the plot region, it disappears.

Werner_E_0-1613483867631.png

 

I guess the Box Trace was as buggy in September 2020 as it is now in Feb 2021. It was thanks to additionally added plots that it worked as you expected.

 

Thanks Werner.  

 

This workaround indeed worked on the more complex graphics that we were working with.  

 

Thanks Much
Bill

 

I hope that work-around is reliable enough and works with future version, too.
As I wrote it doesn't not survive a copy of the plot. I tested that it survives a recalculation but I didn't test if it survives a save and reload of the worksheet.

 

Here is a user-written function to create a boxplot. Input is the result of the "boxplot" function as described in the help. The second function argument is the position on the x-axis (numeric) and the last one is the width of the plot, so you can have boxplots of different widths in on plot.

Werner_E_0-1613697988261.png

Drawbacks maybe as follows:

  • you can't format the line for the median in a different color as the rest of the box plot
  • The width has to be manually selected according to the scale on your x-axis
  • If you resize the plot window in x-direction, the boxplot will also resize. The built-in always snaps back to the very same width, no matter what scale you chose on the x.axis. This may or may not be an advtatage.
  • The outliers are not visible unless you chose a symbol for the points - and if you do so, the same symbol is also used for the vertices of the box which looks a bit ugly.

Werner_E_1-1613698378099.png

P6 file attached

Top Tags