Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 15 22:58

    philippjfr on v0.7.0a22

    (compare)

  • Nov 15 22:58
    philippjfr synchronize #793
  • Nov 15 22:58

    philippjfr on 0.7_final_doc_updates

    Enable embedding Added note about static renderi… Disabled embed (compare)

  • Nov 15 22:57
    philippjfr edited #794
  • Nov 15 22:57
    philippjfr edited #794
  • Nov 15 22:57
    philippjfr edited #794
  • Nov 15 22:57
    philippjfr edited #794
  • Nov 15 22:57
    philippjfr edited #794
  • Nov 15 22:29

    philippjfr on v0.7.0a21

    Enable embedding (compare)

  • Nov 15 22:18
    jbednar labeled #794
  • Nov 15 22:18
    jbednar unlabeled #794
  • Nov 15 22:18
    jbednar edited #794
  • Nov 15 22:01

    jbednar on master

    Added link to wishlist items (compare)

  • Nov 15 22:01
    jbednar closed #387
  • Nov 15 21:57
    philippjfr edited #794
  • Nov 15 21:57
    philippjfr edited #794
  • Nov 15 21:57
    philippjfr synchronize #793
  • Nov 15 21:57

    philippjfr on 0.7_final_doc_updates

    Removed note about stability (compare)

  • Nov 15 21:41
    philippjfr synchronize #793
  • Nov 15 21:41

    philippjfr on 0.7_final_doc_updates

    Fixed sizing_mode examples (compare)

Andrei Berceanu
@berceanu
(in holoviews)
James A. Bednar
@jbednar
Image is good for continuous axes; heatmap for categoricals. If you have one of each type of axis in the same plot, you'll have to hack one or the other.
Andrei Berceanu
@berceanu
Oh I see. I have continuous in both axes, so hv.Image it is :) tnx!
James A. Bednar
@jbednar
@JieLin69105075_twitter , GeoViews supports whatever data types HoloViews does, and HoloViews supports large data of many different types via Datashader, including points and curves: http://holoviews.org/user_guide/Large_Data.html
Datashader polygon support is being implemented as we speak; see pyviz/datashader#181 ; I expect it to be in master in a couple of weeks and then available in the following HoloViews and Datashader releases.
For now, large polygons are supported only as outlines, not filled shapes, and they may require converting into a Datashader-friendly storage format first (can't recall just what's been implemented in HoloViews for e.g. Shapely objects).
JieLin
@JieLin69105075_twitter
@jbednar Thank you
Andrei Berceanu
@berceanu
How come I can't add a group to an image sample?
x_sample = hv.DynamicMap(lambda x, y: image.sample(x=np.clip(x,bounds[0],bounds[2]), group='xsample'), streams=[pointer])
Dimension group not found in Image.
James A. Bednar
@jbednar
I think it would be something like x_sample = hv.DynamicMap(lambda x, y: image.sample(x=np.clip(x,bounds[0],bounds[2])), streams=[pointer]).relabel(group='xsample')
(Sample accepts ranges on user-defined dimensions, which can have arbitrary names and so we don't want to have a lot of keywords supported, so you have to do that sort of thing separately.)
Andrei Berceanu
@berceanu
I see, thanks!
Can I get the overall min and max values of an Image?
James A. Bednar
@jbednar
i = hv.Image(...) ; i.data will give you the underlying array, with which you can do whatever you like if it's not already supported. (i.e. i.max() may work, but e.g. np.amax(i) will if that doesn't, for an image backed by a Numpy array).
Andrei Berceanu
@berceanu
gotcha!
sameerCoder
@sameerCoder

@jbednar
As suggested i have installed pip install --upgrade git+https://github.com/pyviz/panel.git#egg=panel
My panel version also got upgraded to 0.7 as it is showing in conda list .
conda list
panel 0.7.0a14.post21+gb55b21c pypi_0 pypi

Still i am getting Div Error
ValueError: Div type not found, could not apply options.
I have imported panel also and i am using pn.Column for my finalplot.
My little code as below :-

hv.extension("bokeh")
hv.extension("matplotlib")

allplot={(k.strftime("%Y-%m-%d %H:%M:%S"),r):plotthis(k,r)for k in perdelta(strt, strt + timedelta(days=1), timedelta(hours=18)) for r in ['O','A','Wh','T_N']}



df_div = hv.Div("""
    <figure>
    <img src="https://i.ibb.co/imglogo.png" height='80' width='90' vspace='-10'>

    """)

df_div1 = hv.Div("""
    &nbsp<center><b><p style="color:#B22222";font-size:80px;font-family:Times new roman><h1 style=font-size:20px;margin-left:2.5em;margin-top:-1em;color:#B22222>I Services<br />
    (IN)</h1></p></b></center>

    """)

tiles = gv.tile_sources.Wikipedia
hmap1 = hv.HoloMap(allplot, kdims=['Date and Time :','region'])
#hmap2 = hv.HoloMap(allplot2, kdims=['Date and Time :','region'])


dd=df_div.opts(width=70, height=70)
dd1=df_div1.opts(width=600, height=90)
dd2=df_div2.opts(width=100,height=10)
finalplot=pn.Column(pn.Row(dd, dd1, dd2), tiles*rasterize(hmap1).options(**opts)*logo1.opts(hooks=[absolute_position], apply_ranges=False)).servable()

#finalplot
hv.output(finalplot, holomap='gif', fps=3, backend='matplotlib')
Div_Errror_msg.png
@philippjfr @jbednar
Kindly let me know where i am doing wrong.
James A. Bednar
@jbednar
Remove hv.extension("matplotlib") and backend='matplotlib'; you can now ignore matplotlib and just keep using Bokeh as you had been before.
sameerCoder
@sameerCoder
finalplot came but with no animation .
noamination.png
gif file not created .
few warning getting .
finalplot=pn.Column(pn.Row(dd, dd1, dd2), tiles*rasterize(hmap1).options(**opts)*logo1.opts(hooks=[absolute_position], apply_ranges=False)).servable()

#finalplot
finalplot2=hv.output(finalplot, holomap='gif', fps=3, backend='bokeh')
finalplot2

WARNING:param.GeoRasterPlot08463: Supply either hooks or finalize_hooks not both, using hooks and ignoring finalize_hooks.
WARNING:param.RGBPlot08482: Supply either hooks or finalize_hooks not both, using hooks and ignoring finalize_hooks.
WARNING:param.GeoRasterPlot08463: Supply either hooks or finalize_hooks not both, using hooks and ignoring finalize_hooks.
WARNING:param.RGBPlot08482: Supply either hooks or finalize_hooks not both, using hooks and ignoring finalize_hooks.
Paul Gierz
@pgierz
Anyone have any ideas how I could reproduce this? https://stackoverflow.com/questions/20144529/shifted-colorbar-matplotlib
Id like to use hvplot and the bokeh backend
James A. Bednar
@jbednar
@sameerCoder , hv.output() is for HoloViews objects, and you're feeding it a Panel object. You can feed it the rasterize(hmap1) object here; the rest won't work.
James A. Bednar
@jbednar
@pgierz, bokeh/bokeh#9303 (not released) added the ability to generate asymmetric color bars to Bokeh; not sure if that's what you need, or if you just need to set the clim for the plot to a fixed value.
sameerCoder
@sameerCoder

If i am writing my code as below then i am getting Error
where type(finalplot)-- holoviews.core.spaces.DynamicMap


finalplot=tiles*rasterize(hmap1).options(**opts)
finalplot2=hv.output(finalplot,holomap='gif',fps=3,backend='bokeh')
finalplot2

Error: Format 'gif' does not appear to be supported.
For help with hv.util.output call help(hv.util.output)

James A. Bednar
@jbednar
Maybe rasterize(hmap1, dynamic=False).
sameerCoder
@sameerCoder
but i need dynamic to be True as i want zoom option to work

Even when i do dynamic=False same Error :

finalplot=tiles*rasterize(hmap1,dynamic=False).options(**opts)
#finalplot
finalplot2=hv.output(finalplot,holomap='gif',fps=3,backend='bokeh')
finalplot2

Error: Format 'gif' does not appear to be supported.
For help with hv.util.output call help(hv.util.output)

Steve Alexander
@SteveAlexander
I want to move the y axis major labels. I’m successfully moving them left-to-right using figure.yaxis.major_label_standoff. However, major_label_text_baseline doesn’t seem to do anything. I would expect it to move the tick labels up and down relative to the tick line
image.png
my goal is to move these up a bit
Jacob
@goraj
Hi, could someone explain me to scale embedded images in hovertools?
I would like to get some window properties so I could scale it in javascript.
Jacob
@goraj
https://ibb.co/NCw3nPt Ive included a screenshot that shows that the html embedded images wont scale to the window.
James A. Bednar
@jbednar
@sameerCoder , gif output won't have any dynamic zooming; it's just a flipbook of images. But you can choose whatever height=..., width=... arguments you like so that there's something in the image to zoom into. Here, I'm not sure you're actually getting the Panel master version; try import panel as pn ; pn.__version__ to see if you have the right Panel version that does support gif output for Bokeh.
Hayley Song
@cocoaaa
Hi, is 'axiswise' the right parameter to set normalization to be done separately for each plot? With hv.Image, it doesn't seem to work:
data1 = np.random.rand(10,10)
data2 = data1*100
(hv.Image(data1) + hv.Image(data2)).opts(axiswise=True)
image.png
Philipp Rudiger
@philippjfr
@cocoaaa axiswise applies to the elements, not the layout.
sameerCoder
@sameerCoder
@jbednar
pn.__version__ '0.7.0a14.post21+gb55b21c'
since it showing '0.7.0a14.post21+gb55b21c' so i think it is a Panel master version ,
plzz correct me if i am wrong , i have installed correct panel master version ?
Hayley Song
@cocoaaa

@philippjfr I see, thank you! I also learned that hv.Image doesn't have axiswise/framewise option parameters.

%%opts Image [normalize=False]
hv.Image(data1) + hv.Image(data2)

gave me what I needed.

James A. Bednar
@jbednar
@sameerCoder , sorry, I meant to say to check the HoloViews version; it's HoloViews that added Bokeh gif output, not Panel.
@cocoaaa , we don't recommend using the magics any more, so this would be hv.Image(data1).opts(axiswise=True) + hv.Image(data2).opts(axiswise=True). I don't know what the normalize option is, but I don't think it would be having any effect here.
sameerCoder
@sameerCoder
@jbednar
print(hv.version)
'1.12.1'
Eric Ma
@ericmjl
hi guys, got a question which I'm happy to replicate on StackOverflow later: when declaring a param, e.g. param.ListSelector, how do I control its visual properties, e.g. its height or width, in its panel UI?
James A. Bednar
@jbednar
@sameerCoder , that won't have any unreleased changes; you need the git master version of holoviews. If I previously told you to install the git version of panel, I apologize; I meant holoviews! So just replace the command you used to say holoviews wherever it says panel, and try again...
Eric Ma
@ericmjl
Sorry, had to afk for a moment.
For example, if I have a declared param as follows: