The Draw Algebraic Subset (
) action
allows you to select points in a region of the plot by clicking on points
of your choice to mark out a shape.
Different shapes such as polygons and circles are available,
depending on the plot type.
When complete, subsets will be defined with an
algebraic expression which you can see and edit.
This can be particularly useful
(and a better option than the blob)
if you want to refer to the subset outside of the context
of the current session,
for instance in a STILTS command or a published paper.
This action is currently only available in the Plane and Sky plot windows.
Defining a subset by algebraic drawing. This shows use of mode Below in the Plane plot.
When you use this action to define a plot region, it operates in one of a number of inclusion modes, depending on the plot type. In all cases, you click on one or more points to define the boundaries of the region. The available modes are described at the end of this section.
Operation is as follows:
button in the toolbar, and a popup window will first ask you
which inclusion mode you want to use.
Alternatively, you can use one of the mode-specific sub-menu
items in the Subsets|Draw Algebraic Subset menu
to choose a mode without the extra popup.
),
and a little square marker will appear near the mouse pointer
as long as it's over a suitable part of the plot.
You can then click on the plotting area to mark
the points, and the area thus defined
(according to the mode you have chosen)
will be shaded in grey.
Each point you have clicked on to define the area is marked with
the little square marker.
The algebraic form of the expression for the points entered
so far will be displayed at the bottom of the screen.
A right-click (or Ctrl-click) will remove the most recently-added point.
button again.
This will pop up the
Multi Algebraic Subset Window,
which displays the algebraic function
corresponding to the region you have outlined,
and offering to create a new subset
(or, if there are multiple datasets plotted, several new subsets)
from it.
The generated expression tries to be as compact and comprehensible as possible. Precision of the indicated points is determined from the pixel resolution of the plot, so literal numbers are not more unwieldy than they have to be.
The available inclusion modes depend on the plot type, as follows:
isInside from the Shapes class.
x>x0 && x<x1 && y>y0 && y<y1.
hypot((x-x0)/a, (y-y0)/b)<1,
using hypot function from
the Maths class
(hypot(x,y)=sqrt(x*x+y*y)).
y<y0, and
for two points it has the form y<m*x+c.
If there are more points, the special function polyLine
from class Shapes is used.
skyDistance function
from class Sky.
inSkyPolygon function
from class Sky.