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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

histogram with text in the x axis

ebelmonte
8-Gravel

histogram with text in the x axis

Dear all,

I would like to plot a histogram with text on the x axis.

Moreover I would like to perform a calculation without repeating the formula many times.

The two points are highlighted in the attached mathcad file.

Thank-you very much for your support.

 

Best Regards.

 

Enrico

1 ACCEPTED SOLUTION

Accepted Solutions

Its a bit elaborate but it can be done without text boxes or the like

Here's my best try:

B.png

You probably can avoid the magenta line at the bottom if you arrange the plots so that the black bars are plotted last.

View solution in original post

9 REPLIES 9

See if the attached does what you had in mind

 

Dear Werner,

 

Thank-you very much for your replay.

How can I plot the results in a histogram?

 

Best Regards.

 

Enrico

LucMeekes
23-Emerald III
(To:ebelmonte)

eeh... Use the histogram function in combination with a plot...?

 

Success!
Luc

The problem is that I would like to have text in the x axis as I showed in the picture in the mathcad file

LucMeekes
23-Emerald III
(To:ebelmonte)

I don't believe there's a way to 'put text in a plot axis' but you can overlay a plot region with a text region.

I think that should be easy for you, but if you need me to show you, save your file as Mathcad 11 (neglect the error messages) and attach it. I don't have access to Mathcad 15.

 

Success!

Luc

Attached you find the file in he older version.

 

The idea is simply to plot string variable on the x axis (please see the second attached file)

LucMeekes
23-Emerald III
(To:ebelmonte)

As I said, you cannot have text along an axis. Mathcad will only plot real (not even imaginary) scalar values.

But you can overlay text (or variable name) regions with a plot region.

 

See attached.

 

Success!
Luc

Its a bit elaborate but it can be done without text boxes or the like

Here's my best try:

B.png

You probably can avoid the magenta line at the bottom if you arrange the plots so that the black bars are plotted last.

Than-you very much for sharing your solution!

Top Tags