Getting Started¶
Basic Usage¶
We run through the basic functionality of Paxplot using the following synthetic dataset. Note that Paxplot requires its input be in a list of lists or a similar matrix-like format. For usage with Pandas, click here.
data = [
[0.0, 0.0, 2.0, 0.5],
[1.0, 1.0, 1.0, 1.0],
[3.0, 2.0, 0.0, 1.0],
]
Creating a Simple Plot¶
First, we will create a simple plot of our data
.
import paxplot
import matplotlib.pyplot as plt
paxfig = paxplot.pax_parallel(n_axes=4)
paxfig.plot(data)
plt.show()
Adding Labels¶
Let’s say these columns in data
correspond to the labels A, B, and C. We can add those labels!
paxfig = paxplot.pax_parallel(n_axes=4)
paxfig.plot(data)
paxfig.set_labels(['A', 'B', 'C', 'D'])
plt.show()
Saving Your Plot¶
You can easily export your plot in many standard vector and raster formats.
paxfig.savefig('my_plot.png')
Paxplot has lots of additional functionality. Continue onto the next section to see additional examples.