The following is a list of PyXPlot’s simplest plot styles, all of which take two (or three) columns of input data on 2D (or 3D) plots, representing the -,
- (and
-)coordinates of the positions of each point:
stars – similar to points, but uses a different set of marker symbols, based upon the stars drawn in Johann Bayer’s highly ornate star atlas Uranometria of 1603.
A Hertzsprung-Russell Diagram.
Hertzsprung-Russell (HR) Diagrams are scatter-plots of the luminosities of stars plotted against their colours, on which most normal stars lie along a tight line called the main sequence, whilst unusual classes of stars – giants and dwarfs – can be readily identified on account of their not lying along this main sequence. The principal difficulty in constructing accurate HR diagrams is that the luminosities |
The Hipparcos catalogue can be downloaded for free from ftp://cdsarc.u-strasbg.fr/pub/cats/I/239/hip_main.dat.gz; a description of the catalogue can be found at http://cdsarc.u-strasbg.fr/viz-bin/Cat?I/239. In summary, though the data is arranged in a non-standard format which PyXPlot cannot read without a special input filter, the following Python script generates a text file with four columns containing the magnitudes |
for line in open("hip_main.dat"): |
The resultant four columns of data can then be plotted in the dots style using the following PyXPlot script. Because the catalogue is very large, and many of the parallax datapoints have large errorbars producing large uncertainties in their vertical positions on the plot, we use the select statement to pick out those datapoints with parallax signal-to-noise ratios of better than 20. |
set nokey |
![]() |