Hi,

I do have two questions concerning GnuPlot:

1.) How is it possible to plot two functions (or data files) in different

ranges. E.g. I have a datafile that ranges from 0 to 10 and I want to also

show the fit function I just calculated but just from 0 to 5. I have found

plot[xmin:xmag] something. But that restricts all shown data and functions

to that range ...

2.) Is there a possibility to break the axis. I have to shift some data in

order to see it more clearly. Thus I would like to break the yaxis at

certain points and let it start again from 0.

Thanks for any tips,

Guido

--

Why is 6 afraid of 7? Because 7, 8, 9!

<nitpick>No, you don't. You have questions about gnuplot. That's the

name of the program.</nitpick>

Various ways:

a) limit the function by making it undefined where you don't want it to

plot:

plot 'data', ((x<5)?f(x):0/0)

b) use parametric mode to get independent control over x and y of a

function:

set parametric

set trange [0:5]

plot 'data', t, f(t)

Only manually. And you lose automatic tick placement by doing it.

--

Hans-Bernhard Broeker ( XXXX@XXXXX.COM )

Even if all the snow were burnt, ashes would remain.

Am 10 May 2006 13:35:43 GMT schrieb Hans-Bernhard Broeker:

I am sorry about that ;-)

I don't get it. If i say

f(x)=x^2

plot sin(x), ((x<5)?f(x):0/0)

gnuplot says: non-integer passed to boolean operator

Well, I have 5 or 6 fit-functions that describe the data in certain

regions. I don't see how to do that with one parameter.

What do you mean by manual? I could live with manual tic placement...

Guido

--

Why is 6 afraid of 7? Because 7, 8, 9!

I am sorry about that ;-)

I don't get it. If i say

f(x)=x^2

plot sin(x), ((x<5)?f(x):0/0)

gnuplot says: non-integer passed to boolean operator

Well, I have 5 or 6 fit-functions that describe the data in certain

regions. I don't see how to do that with one parameter.

What do you mean by manual? I could live with manual tic placement...

Guido

--

Why is 6 afraid of 7? Because 7, 8, 9!

Unrelated. Read "help expression", and you'll understand why

plot f(x)

all by itself already fails.

By remapping it. set trange [0:1] and create a "t_to_x()" translation

function for each range.

*) Remove that edge of the box: --> 'help set border'

*) set up a function that maps from data values to a synthetic y

*) use it in a "using" specifier to fudge the data

*) set ytics ('0' map_y(0), '2' map_y(2), ... , '100' map_y(100))

--

Hans-Bernhard Broeker ( XXXX@XXXXX.COM )

Even if all the snow were burnt, ashes would remain.

1. Reversing X axis flips Primary Y axis plot but not Secondary Y axis plot

2. PLOTTING: How to make a plot with broken/discontinous x-axis?

3. Plotting Graphs on Same Plot With Axes Rescaled To Include Largest Range

4. how can i plot two different y-axis graph with same x-axis

5. deviding x axis and plot different plots in pa

6. Surface plot for data with same x axis but different y axes

7. Plotting different colored surf plots on same axes

8. Surface plot with the same x-axis but different y axes

9. How to plot chart with 2 different y-axis with a common x-axis?

10. deviding x axis and plot different plots in parts

11. How to plot two set of data with same y-axis but different x-axis

12. Calling Axes Experts: How to plot same data with different x-axis?

13. different axis ranges on a multi-axis chart

14. plotting 2 x-axes and 2 y-axes on the same plot?

15. two tendencies plot for the left Y axis and one bar plot for the right axis ?

4 post • Page:**1** of **1**