Skip to content

RadarPlot build for Urban Habitat team - Sweco

Notifications You must be signed in to change notification settings

rebot/RadarPlot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RadarPlot

AANDACHT: Onderstaande handleiding werd opgesteld voor de vorige versie van RadarPlot. De code is aangepast (meer generieker), maar wordt momenteel nog geplaagd door enkele bugs.

A plot build using PyX, a Python package build for creating PostScript, PDF, and SVG files. It works together with the TeX/LaTeX interface to generate text. This package has been used because the Matplotlib, Pyplot or another package wasn't build to allow a great customisation of the plots.

# In the run.py file a new class is defined
plot = RadarPlot()

This code will generate a RadarPlot instance. You can define the amount of gridlines by defining gridlines= and the amount of items (edges) with items=.

To add data to the plot, a new layer should be created, using:

# Add a new layer to the plot
plot.addLayer(<dataSeries>, name=<name>, color=<hex-color>)

The plot can be saved using the following code:

# Save the plot to a file
plot.save('filename', legend=<boolean>)

Getting started

To get started, I would recommend you to start a new virtualenv, preferably by using a tool like mkvirtualenv <NameOfYourEnv:RadarPlot>. Next, activate your environment by using workon <NameOfYourEnv:RadarPlot>.

Run the following command to install al dependencies:

# This will install all dependencies
pip install -r requirements.txt

Go ahead and run the python script to generate the plots

python run.py

Common issues

Make sure you have installed Tex on your computer. For windows, download MikTex and install for the current User only (Sweco doens't allow you to install it for all users).

Made with ♥️ by Gilles Trenson

About

RadarPlot build for Urban Habitat team - Sweco

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages