A `points` plot visualizes positions in a 2D space. This is useful for example for geographic plots. Although the :meth:`hvplot.hvPlot.scatter` plot is superficially similar to the ``points`` plot (they can generate plots that look identical), the two plot t
(self, x=None, y=None, **kwds)
| 1251 | return self(kind='dataset', **dict(kwds, columns=columns)) |
| 1252 | |
| 1253 | def points(self, x=None, y=None, **kwds): |
| 1254 | """ |
| 1255 | A `points` plot visualizes positions in a 2D space. This is useful for example for |
| 1256 | geographic plots. |
| 1257 | |
| 1258 | Although the :meth:`hvplot.hvPlot.scatter` plot is superficially |
| 1259 | similar to the ``points`` plot (they can generate plots that look |
| 1260 | identical), the two plot types are semantically quite different. |
| 1261 | The fundamental difference is that ``scatter`` is used to visualize |
| 1262 | data where the y variable is dependent, unlike ``points``. |
| 1263 | |
| 1264 | This difference means that ``points`` plots can most naturally |
| 1265 | overlay with other plots that express independent variables in |
| 1266 | two-dimensional space, such as raster types like |
| 1267 | :meth:`hvplot.hvPlot.image`. Conversely, ``scatter`` expresses a |
| 1268 | dependent relationship between x and y and thus most naturally |
| 1269 | overlay with chart types such as :meth:`hvplot.hvPlot.line`. |
| 1270 | |
| 1271 | Reference: https://hvplot.holoviz.org/ref/api/manual/hvplot.hvPlot.points.html |
| 1272 | |
| 1273 | Plotting options: https://hvplot.holoviz.org/ref/plotting_options/index.html |
| 1274 | |
| 1275 | Parameters |
| 1276 | ---------- |
| 1277 | x : string, optional |
| 1278 | The coordinate variable along the x-axis. Default is the first numeric field. |
| 1279 | y : string, optional |
| 1280 | The coordinate variable along the y-axis. Default is the second numeric field. |
| 1281 | c : string, optional |
| 1282 | The dimension to color the points by |
| 1283 | s : int, optional, also available as 'size' |
| 1284 | The size of the marker |
| 1285 | marker : string, optional |
| 1286 | The marker shape specified above can be any supported by matplotlib, e.g. s, d, o etc. |
| 1287 | See https://matplotlib.org/stable/api/markers_api.html. |
| 1288 | scale: number, optional |
| 1289 | Scaling factor to apply to point scaling. Default is 1. |
| 1290 | logz : bool |
| 1291 | Whether to apply log scaling to the z-axis. Default is False. |
| 1292 | **kwds : optional |
| 1293 | Additional keywords arguments are documented in :ref:`plot-options`. |
| 1294 | Run ``hvplot.help('points')`` for the full method documentation. |
| 1295 | |
| 1296 | Returns |
| 1297 | ------- |
| 1298 | :class:`holoviews:holoviews.element.Points` / Panel object |
| 1299 | You can `print` the object to study its composition and run: |
| 1300 | |
| 1301 | .. code-block:: |
| 1302 | |
| 1303 | import holoviews as hv |
| 1304 | hv.help(the_holoviews_object) |
| 1305 | |
| 1306 | to learn more about its parameters and options. |
| 1307 | |
| 1308 | References |
| 1309 | ---------- |
| 1310 |
no outgoing calls