octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only b


From: Rik
Subject: [Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only black pixels
Date: Tue, 12 Dec 2017 22:59:09 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #5, bug #52624 (project octave):

I used copyobj() to get an identical copy.  Sample code:


close all
graphics_toolkit fltk
demo scatter 7
h2 = copyobj (1);
graphics_toolkit (h2, "gnuplot")


For the question about +0 or +1, maybe this description of CDataMapping will
help.  There is definitely an offset of 1 between real types (single and
double) and integer types.


Color data mapping method, specified as 'direct' or 'scaled'. Use this
property to control the mapping of color data values in CData into the
colormap. CData must be a vector or a matrix defining indexed colors. This
property has no effect if CData is a 3-D array defining true colors.

The methods have these effects:

    'direct' — Interpret the values as indices into the current colormap.
Values with a decimal portion are fixed to the nearest lower integer.

        If the values are of type double or single, then values of 1 or less
map to the first color in the colormap. Values equal to or greater than the
length of the colormap map to the last color in the colormap.

        If the values are of type uint8, uint16, uint32, uint64 , int8, int16,
int32, or int64, then values of 0 or less map to the first color in the
colormap. Values equal to or greater than the length of the colormap map to
the last color in the colormap (or up to the range limits of the type).

        If the values are of type logical, then values of 0 map to the first
color in the colormap and values of 1 map to the second color in the
colormap.

    'scaled' — Scale the values to range between the minimum and maximum
color limits. The CLim property of the axes contains the color limits.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52624>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]