You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add documentation for the point-size, scale-function, and spacing flags.
Also rename the pointsize flag to point-size to keep the flag naming
consistent.
Copy file name to clipboardExpand all lines: blendplot/__main__.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ def blendplot(app):
26
26
app.params.z
27
27
]
28
28
spacing=app.params.spacing
29
-
point_size=app.params.pointsize
29
+
point_size=app.params.point_size
30
30
category_column=app.params.category
31
31
scale_function=app.params.scale_function
32
32
@@ -40,7 +40,7 @@ def blendplot(app):
40
40
41
41
blendplot.add_param("-r", "--rows", help="number of rows from the data file to plot", default=None, type=int)
42
42
blendplot.add_param("--spacing", help="the scaling factor to space the data out by", default=2.0, type=float)
43
-
blendplot.add_param("--pointsize", help="the size to use for the data points", default=0.0625, type=float)
43
+
blendplot.add_param("--point-size", help="the size to use for the data points", default=0.0625, type=float)
44
44
blendplot.add_param("-c", "--category", help="the column to use for point categorization", default=None, type=str)
45
45
blendplot.add_param("--scale-function", help="the function to use for scaling the data, valid options are \"maxabs_scale\", \"minmax_scale\", \"normalize\", \"robust_scale\", \"scale\", and \"none\"", default="scale", type=str)
If you have data that is particularly dense or spread out and want to change the size of the cubes generated for each point, then you can use the ``--pointsize`` flag. When you use the flag and specify a point size, then all of the points will be of that size. The default point size is ``0.0625``.
36
+
37
+
For example, the following command will increase the size of the points to ``0.2``
If you want to change the spacing between the points, then there are two related flags that you can use to change it ``--scale-function`` and ``--spacing``.
58
+
59
+
Scale Function
60
+
~~~~~~~~~~~~~~
61
+
62
+
Blendplot applies a scaling function to the input data to get it tofit into a reasonable space and account for differences in the magnitude of different variables. By default, it uses the ``preprocessing.scale`` function from the ``sklearn`` library, however using the ``--scale-function`` flag it can be configured to use other scaling functions or no scaling function at all.
63
+
64
+
For example, the following command will plot the dataset using the ``normalize`` scaling function.
You can also change the point spacing by setting a spacing ratio using the ``--spacing`` flag. The (x,y,z) coordinates for each point are multiplied by the spacing ratio in order to control the spacing between data points. By default, a spacing ratio of ``2.0`` is used.
102
+
103
+
For example, the following command will plot the data with a larger spacing ratio of ``4.0``.
0 commit comments