Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1993
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1993

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Bug in x11ps (was: contour graphics)

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: Re: Bug in x11ps (was: contour graphics)
  • From: p617hfa at sun24.mpifr-bonn.mpg.de (Heino Falcke)
  • Date: Fri, 22 Jan 93 11:43:26 +0100

> dear graphics experts:
> 
> i would like to make some contour plots with the low regions shading to
> white and the high regions shading to black. this is just the reverse of
> the default use of GrayLevel. i've tried defining my own function for
> ColorOutput as described on page 473 of "the Book":
> 
> In[1]:= reverse[GrayLevel[x_]]=GrayLevel[1-x] ;
> 
> In[2]:= ContourPlot[(1-Sin[x])(2-Cos[2 y]), {x,-2,2},{y,-2,2},
> 	ColorOutput->reverse] ;
> 
> but the result is not useful. the shading is correct, but all the black
> lines (contour lines, frame, ticks, tick labels, etc.) are not visible
> because they were drawn in white!
> 
> i know, i know; i could make the kludge of contouring -f(x,y) or
> something similar, but this just goes against my grain. does anyone know
> of a simple (i.e., one or two lines of code) way to achieve the effect i
> want?
> 
> bob

Could that be due to a 'bug' in the x11ps (or the like) program, 
which is used to display the graphics on the screen. I had the same with
colors, the description was yellow,green, and so on and not black, 
as expected. But the printed form of the graphic was correct and the
text was readable. 

However, using psfix and a postscript previewer all the time is indeed
a little bit annoying.

Heino


----------------------------------------------------------------------------
 ___      ___   _____   ___   _____  |Heino Falcke
/__/\    /__/| /____/\ /__/| /____/\ |Max-Planck-Institut f. Radioastronomie
|  \ \  /|  || |  o \/ |  || |  o \/ |Auf dem Huegel 69
|  |\ \//|  || |  __/  |  ||f|  __/  |D-W5300 Bonn, Germany
|  ||\_/ |  || |  ||   |  || |  |\ \ |E-mail: HFALCKE at mpifr-bonn.mpg.de
|__|/    |__|/ |__|/   |__|/ |__|/\_||Fax: 49/(0)228/525-229
                                     |Tel.: 49/(0)228/525-285
----------------------------------------------------------------------------
	






  • Prev by Date: interpolation of unevenly sampled points
  • Next by Date: Re: interpolation of unevenly sampled points
  • Previous by thread: Re: test for "evenness" and "oddness"
  • Next by thread: Use of remote kernels via Mac's