Home
last modified time | relevance | path

Searched refs:colormap (Results 1 – 7 of 7) sorted by relevance

/petsc/src/sys/classes/draw/impls/x/
H A Dxcolor.c37 …Code PetscDrawSetUpColormap_Shared(Display *display, int screen, Visual *visual, Colormap colormap) in PetscDrawSetUpColormap_Shared() argument
47 if (colormap) gColormap = colormap; in PetscDrawSetUpColormap_Shared()
87 …ode PetscDrawSetUpColormap_Private(Display *display, int screen, Visual *visual, Colormap colormap) in PetscDrawSetUpColormap_Private() argument
98 if (colormap) gColormap = colormap; in PetscDrawSetUpColormap_Private()
159 …ErrorCode PetscDrawSetUpColormap_X(Display *display, int screen, Visual *visual, Colormap colormap) in PetscDrawSetUpColormap_X() argument
175 PetscCall(PetscDrawSetUpColormap_Shared(display, screen, visual, colormap)); in PetscDrawSetUpColormap_X()
177 PetscCall(PetscDrawSetUpColormap_Private(display, screen, visual, colormap)); in PetscDrawSetUpColormap_X()
184 PetscErrorCode PetscDrawSetColormap_X(PetscDraw_X *XiWin, Colormap colormap) in PetscDrawSetColormap_X() argument
191 …(!gColormap) PetscCall(PetscDrawSetUpColormap_X(XiWin->disp, XiWin->screen, XiWin->vis, colormap)); in PetscDrawSetColormap_X()
H A Dxinit.c171 window_attributes.colormap = XiWin->cmap; in PetscDrawXiDisplayWindow()
242 PetscCall(PetscDrawSetColormap_X(XiWin, attributes.colormap)); in PetscDrawXiQuickWindowFromWindow()
/petsc/src/sys/classes/draw/utils/
H A Dcmap.c202 PetscErrorCode PetscDrawUtilitySetCmap(const char colormap[], int mapsize, unsigned char R[], unsig… in PetscDrawUtilitySetCmap() argument
212 if (colormap && colormap[0]) { in PetscDrawUtilitySetCmap()
214 …for (id = 0; !match && id < count; id++) PetscCall(PetscStrcasecmp(colormap, cmap_name_list[id], &… in PetscDrawUtilitySetCmap()
215 PetscCheck(match, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Colormap '%s' not found", colormap); in PetscDrawUtilitySetCmap()
/petsc/share/petsc/bin/
H A Ddmnetwork_view.py43 self.colormap = plt.get_cmap('brg')
119 return self.colormap(color)
368 cbar = plt.colorbar(matplotlib.cm.ScalarMappable(norm=norm, cmap=colors.colormap), ax=axis)
371 cbar = plt.colorbar(matplotlib.cm.ScalarMappable(norm=norm, cmap=colors.colormap), ax=axis)
/petsc/doc/changes/
H A D37.md74 - Added option -draw_cmap to use a named colormap (e.g., hue
H A D2015.md157 allocate a separate colormap for PETSc graphics windows. This
/petsc/doc/manual/
H A Dother.md670 By default, PETSc drawing tools employ a private colormap, which
672 external program’s mangling of the colormap. Unfortunately, this may
674 and other windows. Alternatively, a shared colormap can be used via the