Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #528 > unrolled thread
| Started by | Radek Duda <kniper84@googlemail.com> |
|---|---|
| First post | 2011-08-10 07:37 -0700 |
| Last post | 2011-08-17 13:35 +0200 |
| Articles | 6 — 3 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
My own values on x/y axis? Radek Duda <kniper84@googlemail.com> - 2011-08-10 07:37 -0700
Re: My own values on x/y axis? sfeam <sfeam@users.sourceforge.net> - 2011-08-10 14:55 -0700
Re: My own values on x/y axis? Radek Duda <kniper84@googlemail.com> - 2011-08-15 05:25 -0700
Re: My own values on x/y axis? sfeam <sfeam@users.sourceforge.net> - 2011-08-15 08:35 -0700
Re: My own values on x/y axis? Radek Duda <kniper84@googlemail.com> - 2011-08-17 03:31 -0700
Re: My own values on x/y axis? Christoph Bersch <usenet@bersch.net> - 2011-08-17 13:35 +0200
| From | Radek Duda <kniper84@googlemail.com> |
|---|---|
| Date | 2011-08-10 07:37 -0700 |
| Subject | My own values on x/y axis? |
| Message-ID | <14288221-c718-4ddd-b383-be694b31632b@q1g2000vbj.googlegroups.com> |
Hello, I've got a problem with gnuplot - maybe you could help me to solve it. I have got a set od data - like this: 372,333,315 306,301,294 01,288,309 , and want to make similar graph like http://gnuplot.sourceforge.net/demo_4.2/heatmaps.html, using command splot '-' matrix with image My problem is that I want different axis values (e.g. the minimal x- value will be 123 instead of zero, the maximum will be lets say 200). I tried the xrange command, but it doesn't solve my problem. It only tells gnuplot which area of graph to plot. Thank you for reply.
[toc] | [next] | [standalone]
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Date | 2011-08-10 14:55 -0700 |
| Message-ID | <j1uuns$rko$1@dont-email.me> |
| In reply to | #528 |
Radek Duda wrote: > Hello, > I've got a problem with gnuplot - maybe you could help me to solve > it. > I have got a set od data - like this: > 372,333,315 > 306,301,294 > 01,288,309 > , and want to make similar graph like > http://gnuplot.sourceforge.net/demo_4.2/heatmaps.html, > using command > splot '-' matrix with image > > > My problem is that I want different axis values (e.g. the minimal x- > value will be 123 instead of zero, the maximum will be lets say 200). There are several ways to approach this, but you may need to update to version 4.4 to use them. Here's a relevant demo from the 4.4 collection: http://gnuplot.sourceforge.net/demo/barchart_art.html > I tried the xrange command, but it doesn't solve my problem. It only > tells gnuplot which area of graph to plot. > > Thank you for reply.
[toc] | [prev] | [next] | [standalone]
| From | Radek Duda <kniper84@googlemail.com> |
|---|---|
| Date | 2011-08-15 05:25 -0700 |
| Message-ID | <6f5e8764-8221-4918-b455-9637d7c6269a@b20g2000vbz.googlegroups.com> |
| In reply to | #529 |
Hi , thank you for your suggestion, but it doesn't solve my problem. In fact I don't have three rows and three colmns like in the example I gave in my recent post, but the datafile is much larger. So I find it troublesome to re-label every tick manually. Do you think there is any other simple way to increase value of every tick by specific value? Or to be more specific I need to perform this job: ticks_new_value=ticks_old_value * const + offset Bye On 10 srp, 23:55, sfeam <sf...@users.sourceforge.net> wrote: > Radek Duda wrote: > > Hello, > > I've got a problem with gnuplot - maybe you could help me to solve > > it. > > I have got a set od data - like this: > > 372,333,315 > > 306,301,294 > > 01,288,309 > > , and want to make similar graph like > >http://gnuplot.sourceforge.net/demo_4.2/heatmaps.html, > > using command > > splot '-' matrix with image > > > My problem is that I want different axis values (e.g. the minimal x- > > value will be 123 instead of zero, the maximum will be lets say 200). > > There are several ways to approach this, but you may need to update > to version 4.4 to use them. Here's a relevant demo from > the 4.4 collection: > > http://gnuplot.sourceforge.net/demo/barchart_art.html > > > > > > > > > I tried the xrange command, but it doesn't solve my problem. It only > > tells gnuplot which area of graph to plot. > > > Thank you for reply.
[toc] | [prev] | [next] | [standalone]
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Date | 2011-08-15 08:35 -0700 |
| Message-ID | <j2beeq$brs$1@dont-email.me> |
| In reply to | #536 |
Radek Duda wrote: > Hi , > thank you for your suggestion, but it doesn't solve my problem. In > fact I don't have three rows and three colmns like in the example I > gave in my recent post, but the datafile is much larger. So I find it > troublesome to re-label every tick manually. > Do you think there is any other simple way to increase value of every > tick by specific value? Or to be more specific I need to perform this > job: > ticks_new_value=ticks_old_value * const + offset Please look more carefully at the example I pointed to. It does exactly that, using the modifiers origin=(60,0) dx=0.5 dy=1.5 to re-map the coordinates of the array as it is read in. The tick labels are not really relevant to this. You can label the ticks however you like, automatically or manually. Ethan > > Bye > > On 10 srp, 23:55, sfeam <sf...@users.sourceforge.net> wrote: >> Radek Duda wrote: >> > Hello, >> > I've got a problem with gnuplot - maybe you could help me to solve >> > it. >> > I have got a set od data - like this: >> > 372,333,315 >> > 306,301,294 >> > 01,288,309 >> > , and want to make similar graph like >> >http://gnuplot.sourceforge.net/demo_4.2/heatmaps.html, >> > using command >> > splot '-' matrix with image >> >> > My problem is that I want different axis values (e.g. the minimal >> > x- value will be 123 instead of zero, the maximum will be lets say >> > 200). >> >> There are several ways to approach this, but you may need to update >> to version 4.4 to use them. Here's a relevant demo from >> the 4.4 collection: >> >> http://gnuplot.sourceforge.net/demo/barchart_art.html >> >> >> >> >> >> >> >> > I tried the xrange command, but it doesn't solve my problem. It >> > only tells gnuplot which area of graph to plot. >> >> > Thank you for reply.
[toc] | [prev] | [next] | [standalone]
| From | Radek Duda <kniper84@googlemail.com> |
|---|---|
| Date | 2011-08-17 03:31 -0700 |
| Message-ID | <9f939180-bb83-4a85-9752-8df5d09d3998@m18g2000vbl.googlegroups.com> |
| In reply to | #537 |
Hi, thank you for your reply, but it doesn't work for me. I think that problem is that I want to plot a matrix instead of picture (as is ploted in the mentioned demo example). I tried also commands set origin and set scale, but it is not very helpful. Radek On 15 srp, 17:35, sfeam <sf...@users.sourceforge.net> wrote: > Radek Duda wrote: > > Hi , > > thank you for your suggestion, but it doesn't solve my problem. In > > fact I don't have three rows and three colmns like in the example I > > gave in my recent post, but the datafile is much larger. So I find it > > troublesome to re-label every tick manually. > > Do you think there is any other simple way to increase value of every > > tick by specific value? Or to be more specific I need to perform this > > job: > > ticks_new_value=ticks_old_value * const + offset > > Please look more carefully at the example I pointed to. > It does exactly that, using the modifiers > origin=(60,0) dx=0.5 dy=1.5 > to re-map the coordinates of the array as it is read in. > > The tick labels are not really relevant to this. > You can label the ticks however you like, automatically or > manually. > > Ethan > > > > > > > > > > > Bye > > > On 10 srp, 23:55, sfeam <sf...@users.sourceforge.net> wrote: > >> Radek Duda wrote: > >> > Hello, > >> > I've got a problem with gnuplot - maybe you could help me to solve > >> > it. > >> > I have got a set od data - like this: > >> > 372,333,315 > >> > 306,301,294 > >> > 01,288,309 > >> > , and want to make similar graph like > >> >http://gnuplot.sourceforge.net/demo_4.2/heatmaps.html, > >> > using command > >> > splot '-' matrix with image > > >> > My problem is that I want different axis values (e.g. the minimal > >> > x- value will be 123 instead of zero, the maximum will be lets say > >> > 200). > > >> There are several ways to approach this, but you may need to update > >> to version 4.4 to use them. Here's a relevant demo from > >> the 4.4 collection: > > >>http://gnuplot.sourceforge.net/demo/barchart_art.html > > >> > I tried the xrange command, but it doesn't solve my problem. It > >> > only tells gnuplot which area of graph to plot. > > >> > Thank you for reply.
[toc] | [prev] | [next] | [standalone]
| From | Christoph Bersch <usenet@bersch.net> |
|---|---|
| Date | 2011-08-17 13:35 +0200 |
| Message-ID | <j2g916$1bll$1@gwdu112.gwdg.de> |
| In reply to | #540 |
Hi, On 17.08.2011 12:31, Radek Duda wrote: > > thank you for your reply, but it doesn't work for me. I think that > problem is that I want to plot a matrix instead of picture (as is > ploted in the mentioned demo example). I tried also commands set > origin and set scale, but it is not very helpful. try the 'using' keyword: set xrange [1000:1300] set yrange [0:3] plot '-' matrix using (($1+0.5)*100 + 1000):($2+0.5):3 with image 1 2 3 4 5 6 7 8 9 e Christoph
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web