Comments (6)
Also very surprising. The second example you mention should also work fine:
import numpy as np
%load_ext holoviews.ipython
from holoviews import Image
Image(np.random.rand(5,5), label='A')(style={'cmap':'gray'})
Are you using HoloViews 1.0.1 from PyPI (i.e. installed with pip) or are you using a development version cloned from GitHub?
from holoviews.
Does the object far + near + pump + dmk
display ok (i.e without an error) if you don't try setting the 'gray' color map?
By the way, if you want all Images to always to be shown with grayscale (by default) you can do:
Store.options.Curve = Options('style', cmap='gray')
Alternatively, you could set a group and set a style specific to that group. E.g if you have:
Image(read_dmk(files[index[3]]), label='M'+files[index[3]], group='DMK')
You could set this once for all Images that are to be displayed in the style of dmk
:
Store.options.Image.DMK = Options('style', cmap='gray')
Hope that helps but I would still like to get to the bottom of your original error!
from holoviews.
The problem is in the label. Labels with '.' seems to be problematic:
Image(data, label='M09_pump.bmp')(style={'cmap':'Greens_r'})
Thank you for the suggestion to use groups. This makes the code more readable.
from holoviews.
We will probably just escape the period like everything else (when used for attribute access). This will be fixed by the next bug fix release (i.e very soon).
from holoviews.
This issue should now be fixed in 612f6d3. I'll keep this issue open for a while longer in case anyone has any comments on this commit.
from holoviews.
Ok. Looks like I can close this issue now.
from holoviews.
Related Issues (20)
- Show legend for rasterized overlay
- datashade of NdOverlay of QuadMesh does not work HOT 4
- NdOverlay graph colors disappear for "show_legend=False" for Scatter graphs.
- Overlay of HLines with categorical axis doesn't work.
- holoview/matplotlib fails to plot a raster image with a log scale
- `match_aspect` parameter for bokeh's `BoxZoomTool` is not working HOT 4
- GridSpace with one axis renders without tools in Bokeh
- Removing the legend from NdOverlay also removes the colors
- HoloMap doesn't show new graph when previous graph was empty. HOT 1
- Enabling the Matplotlib backend for Holoviews breaks Matplotlib in notebooks HOT 3
- Buffer does not work as dict argument to Dynamic Map HOT 1
- `hv.Bars` with more than one `kdim` randomly generates incorrect x-ticks in some cases (matplotlib backend) HOT 3
- The pointerXY stream breaks on heatmaps with categorical kdims
- [matplotlib backend] Setting title for `hv.Bars` does not work HOT 1
- Bug with hvplot plotly violin plots using 'by' argument
- Adding tools to an Overlay has no effect
- Customize zoom icons for subcoordinate-y plots HOT 1
- PointDraw empty_value field not respected when using style mapping
- HoloViews kdims go missing when sent to a separate process HOT 1
- Linked Selection is broken for Bar charts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from holoviews.