Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2154
| From | Ethan A Merritt <EAMerritt@gmail.com> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: differences from gnuplot 4.4.3 and 4.6.x |
| Date | 2013-10-16 20:25 -0700 |
| Organization | made entirely of Lego |
| Message-ID | <l3nl9k$kri$1@dont-email.me> (permalink) |
| References | <de15f13c-e766-4199-a1d0-079e756fd954@googlegroups.com> |
Dom wrote:
> Hello,
>
> I have recently upgraded to gnuplot 4.6.x (On SUSE 12.3) and I have
> noticed that now my charts look different than they did before using
> 4.4.3 (UBUNTU).
>
> The code in question is as follows:
>
> # create a 3D offset on each chart
I'm not following you, sorry.
What's a "3D offset"?
Is this a 2D plot ("plot" command) or a 3D plot ("splot" command)?
> #
> # object 1 set the background colour of the entire image
> set object 1 rectangle from screen 0,0 to screen 1.05,1.05 behind fc
> rgb "#e5e5e5" fillstyle solid noborder
> #
> # object 2 rectangle but it does'nt show up
> set object 2 rectangle from graph 0,0 to graph 1.05,1.05 behind fc
> rgb "#000000" fillstyle transparent border
> #
> # object 3 changes the color of the graph area
> set object 3 rectangle from graph 0,0 to graph 1.05,1.05 behind fc
> rgb "#fffff0" fillstyle transparent border
> # end 3D offset
> #
Those commands do nothing obvious other than set a backgound color
when tested here using either 4.4.3, 4.6.4, or current development cvs.
What terminal type are you using?
Anyhow, taking the object commands one by one...
1) The first rectangle should fill the screen with grey, although some
terminal types will have problems because you try to draw off the
edge of the screen (screen coordinate > 1). In version 4.4 this can
cause segfaults. In version 4.6 coordinates are clipped to the actual
screen, so it should be harmless though not necessary.
Most terminal types now allow a simpler way to set a background, e.g.
set term wxt background rgb '#e5e5e5'
2) "fillstyle transparent border" is not valid syntax in any
version of gnuplot. Do you mean "fillstyle transparent solid <frac>"
for some non-zero value of <frac>?
3) same as above - not legal syntax in any version of gnuplot.
Since rectangles 2 and 3 have identical coordinates and are both "behind",
you can only ever see one rectangle. Typo in coordinates?
> everything else works as expected, the lines above created a 3D offset
> for the chart area... now the black offset doesn't show up, even
> though it's offset.
what offset?
Was there supposed to be a "set offset" command?
Maybe you are trying for something like the 2nd example plot in
http://www.phyast.pitt.edu/~zov1/gnuplot/html/gallery.html
That site has example code that might help.
> What am I doing wrong? Thanks for your help.
>
> Dom
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
differences from gnuplot 4.4.3 and 4.6.x Dom <domenic.forgione56@gmail.com> - 2013-10-16 11:24 -0700
Re: differences from gnuplot 4.4.3 and 4.6.x Ethan A Merritt <EAMerritt@gmail.com> - 2013-10-16 20:25 -0700
Re: differences from gnuplot 4.4.3 and 4.6.x domenic.forgione56@gmail.com - 2013-10-16 20:47 -0700
Re: differences from gnuplot 4.4.3 and 4.6.x Ethan A Merritt <EAMerritt@gmail.com> - 2013-10-16 23:08 -0700
Re: differences from gnuplot 4.4.3 and 4.6.x dom <domenic.forgione56@gmail.com> - 2013-10-17 19:08 -0700
Re: differences from gnuplot 4.4.3 and 4.6.x Ethan A Merritt <EAMerritt@gmail.com> - 2013-10-17 22:10 -0700
Re: differences from gnuplot 4.4.3 and 4.6.x domenic.forgione56@gmail.com - 2013-10-18 12:16 -0700
Re: differences from gnuplot 4.4.3 and 4.6.x Ethan A Merritt <merritt@u.washington.edu> - 2013-10-18 13:21 -0700
Re: differences from gnuplot 4.4.3 and 4.6.x Dom <domenic.forgione56@gmail.com> - 2013-10-18 13:56 -0700
csiph-web