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

histogram with text in the x axis

SOLVED
Highlighted
Contributor

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

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: histogram with text in the x axis

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
Highlighted

Re: histogram with text in the x axis

See if the attached does what you had in mind

 

Highlighted

Re: histogram with text in the x axis

Dear Werner,

 

Thank-you very much for your replay.

How can I plot the results in a histogram?

 

Best Regards.

 

Enrico

Highlighted

Re: histogram with text in the x axis

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

 

Success!
Luc

Highlighted

Re: histogram with text in the x axis

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

Highlighted

Re: histogram with text in the x axis

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

Highlighted

Re: histogram with text in the x axis

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)

Highlighted

Re: histogram with text in the x axis

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

Highlighted

Re: histogram with text in the x axis

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

Highlighted

Re: histogram with text in the x axis

Than-you very much for sharing your solution!

Announcements