A package to quickly visualise radar charts
Project description
Radar Chart Package
This is a simple radar chart package to quickly use and visualise radar charts using a single function.
from radar_chart import radar_chart
import matplotlib.pyplot as plt
import numpy as np
from random import random
labels = [str(i) + ":00" for i in range(1,13)][::-1]
values = [random()*1000 for i in range(len(labels))]
radar_chart(values, labels, y_ticks=False, rotate=90)
plt.show()
Parameters:
stats
: sequence of scalarcat_labels
: sequence of string, defaultNone
. Labels for each value instrats
line_color
: hex-color-code string, default#00C853
. Defines the line color that joins the plotted values.fill_color
: hex-color-code string, default#00C853
. Defines the fill color of the plot area.marker
: string, defaultNone
. Marker style e.g.+
,x
,o
.marker_alpha
: float between 0-1, default1
. Sets the transparency of the marker (0: Transparent, 1: Opaque).fill_alpha
: float between 0-1, default1
. Sets the transparency of the fill of the plot area (0: Transparent, 1: Opaque).rotate
: float, default'Degrees'
. Default setting does nothing. Accepts degrees (which is converted to radians) and rotates the plot clockwise.reverse_rotation
bool, defaultFalse
. Direction of the plot is reversed ifTrue
.y_ticks
sequence of scalar/string or bool, defaultTrue
. Default will set y-tick labels according tostats
values. No y-tick labels ifFalse
. Sets sequence as y-tick labels if sequence.x_ticks
sequence of scalar/string or bool, defaultTrue
. Default will set y-tick labels according tocat_labels
values. No y-tick labels ifFalse
. Sets sequence as x-tick labels if sequence.gridline
bool, defaultTrue
. Removes gridlines ifFalse
gridline_color
hex-color-code string, default'#888888'
. Defines the color of the gridlines.gridline_width
float, default0.3
. Defines the width of the gridlines.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
radar-chart-0.0.4.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for radar_chart-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6436740fd889d6414a06718afc1f662b2970f1e43c683a408d60905a2a886a81 |
|
MD5 | 21d4a9ad11347fa4f47e673b131d2adf |
|
BLAKE2b-256 | 0a3e358f6a806ce0a8967db5d8ebdf743372382d56e6b1b9364812ca6b0e31c9 |