hvPlot.points#

hvPlot.points(x=None, y=None, **kwds)[source]#

A points plot visualizes positions in a 2D space. This is useful for example for geographic plots.

There is no assumption that ‘y’ depends on ‘x’. This is different from a scatter plot which assumes that y depends x.

Reference: https://hvplot.holoviz.org/reference/geopandas/points.html

Parameters:
xstring, optional

The coordinate variable along the x-axis. Default is the first numeric field.

ystring, optional

The coordinate variable along the y-axis. Default is the second numeric field.

cstring, optional

The dimension to color the points by

sint, optional, also available as ‘size’

The size of the marker

markerstring, optional

The marker shape specified above can be any supported by matplotlib, e.g. s, d, o etc. See https://matplotlib.org/stable/api/markers_api.html.

scale: number, optional

Scaling factor to apply to point scaling.

logzbool

Whether to apply log scaling to the z-axis. Default is False.

**kwdsoptional

Additional keywords arguments are documented in hvplot.help(‘points’). See Plotting Options for more information.

Returns:
holoviews.element.Points / Panel object

You can print the object to study its composition and run:

import holoviews as hv
hv.help(the_holoviews_object)

to learn more about its parameters and options.

References

Examples

import hvplot.pandas
import pandas as pd

data = pd.DataFrame(dict(x=[49.9, 50.0, 50.1, 50.2], y=[50.2, 49.9, 50.0, 50.2]))
plot = data.hvplot.points(color="green", size=100, marker="square")
plot

Backend-specific styling options#

alpha, angle, cmap, color, fill_alpha, fill_color, hit_dilation, hover_alpha, hover_color, hover_fill_alpha, hover_fill_color, hover_line_alpha, hover_line_cap, hover_line_color, hover_line_dash, hover_line_dash_offset, hover_line_join, hover_line_width, line_alpha, line_cap, line_color, line_dash, line_dash_offset, line_join, line_width, marker, muted, muted_alpha, muted_color, muted_fill_alpha, muted_fill_color, muted_line_alpha, muted_line_cap, muted_line_color, muted_line_dash, muted_line_dash_offset, muted_line_join, muted_line_width, nonselection_alpha, nonselection_color, nonselection_fill_alpha, nonselection_fill_color, nonselection_line_alpha, nonselection_line_cap, nonselection_line_color, nonselection_line_dash, nonselection_line_dash_offset, nonselection_line_join, nonselection_line_width, palette, selection_alpha, selection_color, selection_fill_alpha, selection_fill_color, selection_line_alpha, selection_line_cap, selection_line_color, selection_line_dash, selection_line_dash_offset, selection_line_join, selection_line_width, size, visible

alpha, c, cmap, color, ec, ecolor, edgecolor, edgecolors, facecolors, linewidth, lw, marker, norm, s, visible, vmax, vmin

Examples#

TBD

This web page was generated from a Jupyter notebook and not all interactivity will work on this website.