Possible bug with contourf and tics

View: New views
6 Messages — Rating Filter:   Alert me  

Possible bug with contourf and tics

by Marco Caliari-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear all,

I notice (Octave 3.0.0 and today Mercurial archive) that

contourf(peaks)

does not produce the tic marks. axis("on") or axis("tic") do not help. Is
it a bug? If not, how can I put the tic marks?

Best regards,

Marco
_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www.cae.wisc.edu/mailman/listinfo/bug-octave

Re: Possible bug with contourf and tics

by dbateman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Marco Caliari-4 wrote:
Dear all,

I notice (Octave 3.0.0 and today Mercurial archive) that

contourf(peaks)

does not produce the tic marks. axis("on") or axis("tic") do not help. Is
it a bug? If not, how can I put the tic marks?

Best regards,

Marco
_______________________________________________
Bug-octave mailing list
Bug-octave@octave.org
https://www.cae.wisc.edu/mailman/listinfo/bug-octave

Yes its a bug... in gnuplot.. Use gnuplot 4.2.2 and not gnuplot 4.2.0 and the problem should be fixed..

D.

Re: Possible bug with contourf and tics

by John W. Eaton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On  5-Mar-2008, dbateman wrote:

| Yes its a bug... in gnuplot.. Use gnuplot 4.2.2 and not gnuplot 4.2.0 and
| the problem should be fixed..

It works for you?  I have gnuplot 4.2.2 and I don't see the ticks with

  contourf (peaks);

with either 3.0.0 or the current sources.  I do see the labels, but
not tick marks.  What other commands are needed to make them appear?

Thanks,

jwe

_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www.cae.wisc.edu/mailman/listinfo/bug-octave

Parent Message unknown Re: Possible bug with contourf and tics

by Marco Caliari-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

I investigated a little bit more (Octave 3.0.0+ and Gnuplot 4.2.2). The
following

contourf(peaks)
axis([1 49 1 49])

does not show the tick markers. But the following

contourf(peaks)
axis([2 48 2 48])

yes, at least where the fill color is white. So, it seems that not-white
regions overwrite the tick markers.

Best regards,

Marco
_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www.cae.wisc.edu/mailman/listinfo/bug-octave

Re: Possible bug with contourf and tics

by John W. Eaton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On  7-Mar-2008, Marco Caliari wrote:

| I investigated a little bit more (Octave 3.0.0+ and Gnuplot 4.2.2). The
| following
|
| contourf(peaks)
| axis([1 49 1 49])
|
| does not show the tick markers. But the following
|
| contourf(peaks)
| axis([2 48 2 48])
|
| yes, at least where the fill color is white. So, it seems that not-white
| regions overwrite the tick markers.

Please try the following patch.

Thanks,

jwe



# HG changeset patch
# User John W. Eaton <jwe@...>
# Date 1204889050 18000
# Node ID 8bf1bcb0ad8fb31b97f0ce2a9d5f5d0a94e4e55b
# Parent  369b16e7f04b8b69b9193fbedce1d2516f1c7ba8
set axes layer property to "top"

diff --git a/scripts/ChangeLog b/scripts/ChangeLog
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,4 +1,6 @@ 2008-03-07  John W. Eaton  <jwe@...
 2008-03-07  John W. Eaton  <jwe@...>
+
+ * plot/contourf.m: Set axes layer property to "top".
 
  * plot/__go_draw_axes__.m: Handle tickdir property.
 
diff --git a/scripts/plot/contourf.m b/scripts/plot/contourf.m
--- a/scripts/plot/contourf.m
+++ b/scripts/plot/contourf.m
@@ -180,6 +180,8 @@ function varargout = contourf (varargin)
     set (gca(), "clim", [min(lev), max(lev)]);
   endif
 
+  set (gca (), "layer", "top");
+
   if (nargout > 0)
     varargout{2} = h;
     varargout{1} = c;

_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www.cae.wisc.edu/mailman/listinfo/bug-octave

Re: Possible bug with contourf and tics

by Marco Caliari-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Fine, thank you.

Marco

On Fri, 7 Mar 2008, John W. Eaton wrote:

> On  7-Mar-2008, Marco Caliari wrote:
>
> | I investigated a little bit more (Octave 3.0.0+ and Gnuplot 4.2.2). The
> | following
> |
> | contourf(peaks)
> | axis([1 49 1 49])
> |
> | does not show the tick markers. But the following
> |
> | contourf(peaks)
> | axis([2 48 2 48])
> |
> | yes, at least where the fill color is white. So, it seems that not-white
> | regions overwrite the tick markers.
>
> Please try the following patch.
>
> Thanks,
>
> jwe
>
>
>
_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www.cae.wisc.edu/mailman/listinfo/bug-octave