1. Samuel Sinayoko
  2. sampolar

Overview

Introduction

This is a simple module that generates custom polar plots with Matplotlib. Features include:

  • Customizable axes in the radial direction
  • Customizable axes in the angular direction
  • Possibility to embed the polar plot in a rectangular box

Usage

import sampolar as sp
# Noise directivity in dB between 0 and 180 deg
sp.test_real(0)  # 0 is the figure number
# Use same optional parameters and keyword arguments as in Matplotlib
sp.test_real(0, 'ro', lw=2)
# Change the angular range
sp.test_real(0, params=dict(theta0=0, theta1=90))
# Change the radial range
sp.test_real(0, params=dict(rmin=-12, rmax=0))