Message Boards Message Boards

0
|
5174 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

How to specify the y-axis range for PairedHistogram?

Posted 9 years ago

How would I specify the min and max of the y-axis for PairedHistogram[]?

example code,

data1 = RandomVariate[NormalDistribution[1, 2], 500];
data2 = RandomVariate[WeibullDistribution[1, 2], 500];
PairedHistogram[data1, data2, Automatic, "PDF"]

To set the axis to be from 1 to 37 for instance, regardless of the data values.

POSTED BY: Greg

Hi there,

does this what you want?

data1 = RandomVariate[NormalDistribution[1, 2], 500];
data2 = RandomVariate[WeibullDistribution[1, 2], 500];
PairedHistogram[data1, data2, Automatic, "PDF", PlotRange -> {All, {1, 37}}]

enter image description here

Cheers,

M.

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract