Skip to content

Commit

Permalink
updated docstring in the size_by arg to point out that the size is ma…
Browse files Browse the repository at this point in the history
…rker area
  • Loading branch information
jgostick committed Jun 21, 2023
1 parent f02be9d commit ff9c8fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openpnm/visualization/_plottools.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ def plot_coordinates(network,
well as throat connections from ``plot_connections``.
size_by : str or array_like
An ndarray of pore values (e.g. alg['pore.concentration']). These
values are normalized by scaled by ``markersize``.
values are normalized by scaled by ``markersize``. Note that this controls
the marker *area*, so if you want the markers to be proportional to diameter
you should do `size_by=net['pore.diameter']**2`.
color_by : str or array_like
An ndarray of pore values (e.g. alg['pore.concentration']).
cmap : str or cmap object
Expand Down

0 comments on commit ff9c8fe

Please sign in to comment.