Jqplot multiples yaxis with the same scale - scale

I draw some plots with Jqplot and on some of them, I've 2 yaxis.
I would like to know if it is possible to specify that both axis have the same scale ?
I can't use only one axis because I plot different values but with the same unit.
Thanks !

You can specify the same min, max values for both your yaxis.You can also set tickInterval and numberTicks options to be sure of having two similar yaxis.
PS : Please see here for more options about Axis.

Related

How to specify axis range without modifying dataset scale?

I would like to know how to set the axis range and achieve the same behavior that Google Image Charts had. Here is the example for the same request URL:
I.e., I have an y value on each 100th of x axis. Is there a way to easily define a dataset 'step' for Image Charts, or I have to create custom labels on x axis with chxl, which I would like to avoid?
Image-Charts founder here :)
Indeed, regarding axis range our documentation is (I hope) explicit:
In Google Image Charts specifying the chxr parameter changed the scale of the axis but not the dataset scale. In Image-Charts — because we think it's was the biggest usage issue with Google Image Charts — changing the axis scale through chxr also impact the whole dataset scale.
You must make an axis visible using the chxt parameter if you want to specify its range.
You will have to use axis range (chxr) to better specify what you want and the steps needed:
chxr=
<axis_index>,<start_val>,<end_val>,<opt_step>
|...|
<axis_index>,<start_val>,<end_val>,<opt_step>

Labelling X and Y axis in Dymola plot

I have drawn a plot using "plotArrays" function in Dymola. I would like to label X-axis in meters(Ideally, I need it to be flexible so that I can later change it to millimeters, micrometers, etc..). I want to label Y-axis similarly in volts which I have done already using
plotArrays(x_axis,phie,legend=names,units=fill("V",size(phie,2)));
and I can read the values in volts and also change to mV etc.. However, its not 'visible' in Y-axis as you can see in the plot below. So, How can I label the axes separately?
Thanks a lot!
I don't know any more efficient possibility than this:
createPlot(id=1, erase=false, grid=true, leftTitleType=2, leftTitle="myLabelY", bottomTitleType=2, bottomTitle="myLabelX")
with:
id being the number shown in the original plot
erase=false to ensure that the content is not modified
grid=true (re-)enabling the grid
*TitleType=2 saying that there is a custom title
*Title being the string to put there
This will result in the plot being resized to the default size. You can use plotSetup() to get the current setup, including position, which you can then pass (manually) to the createPlot() command to result in the original size again.
Not very elegant, but I don't know any other possibility...

qcc pareto.chart: bars are squashed - how to adjust the y axis?

I've produced a pareto.chart using the QCC package in R. In the default plot, the Y axis is scaled too large & for that reason the bars are too small. Most of the plot is wasted to empty white space. I assume this is a result of the long tail (right-skew) in the data ?
How is it possible to re-scale the Y-Axis so that the bars of the chart will be taller and more prominent (and differences between the bars more visible) ?
This is my first question and I can't post images yet. Please follow the link to an illustration of the problem:
https://www.dropbox.com/s/t8bwhmoxmwl1aic/pareto-axis.png
Thanks!
Keith
If you type help(pareto.chart) you will see there is an option ylim to specify the limits if the y-axis. If you provide some sample data I could try it out.
Otherwise, try including in your function call
pareto.chart(..., ylim=c(0,10000))
and see if that rescales your y-axis.

Increase the margin between y axis values of a Column chart

here is the image of column chart which i am drawing by using the samples provided in flash's help page.
Now i need to increase the margin of y axis series. For example, as per the attached image it is 200 and i want to make 500 so that less points should come on y axis label bar.
Thanks in adv!
You can create your own labelFunction through which you can change the default values of Y axis labels.
You can also use the Mahesh Parate's suggestion to set the min and max values of the Y axis label.
OR you can use both 1& 2 together
I dont think the above answers actually satisfies what was i looking for.
There is simple attribute in flash "interval". it does the trick.

JFreechart get grid display dimension

How can I get the DISPLAY dimensions of my grid squares in an XY plot. I can get the tick unit, but because the plot axis is adjusted to fit the dataset, equal tick units on both axis do not always look equal, maybe because one of the axis have a larger range of values.
Is there any way to get the displayed dimensions of the grids, and not the tick unit.
Thanks
You might be able to infer something useful from getBounds() on the ChartPanel and getInsets() on the Plot. Alternatively, specify a square container and setResizable(false).

Resources