Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
BrechtBa committed Jul 8, 2016
2 parents f8e4f13 + 91c103b commit 1647ae6
Show file tree
Hide file tree
Showing 10 changed files with 1,755 additions and 272 deletions.
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
plottools
=========

A package with usefull tools for plotting with matplotlib
5 changes: 4 additions & 1 deletion examples/color.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import matplotlib.pyplot as plt
import numpy as np

import plottools as pt


# line plot with thick lines
plt.figure()
x = np.linspace(0,2*np.pi,100)

pt.color.set_as_default()
n = len(pt.color.cycle)

for i in range(n):
Expand All @@ -17,7 +20,7 @@
# some lines
plt.figure()
x = np.linspace(0,2*np.pi,100)
plt.plot(x,np.sin(x- 0*2*np.pi/12),color=pt.color['d'],label='d')
plt.plot(x,np.sin(x- 0*2*np.pi/12),color=pt.color['l'],label='l')
plt.plot(x,np.sin(x- 2*2*np.pi/12),color=pt.color['b'],label='b')
plt.plot(x,np.sin(x- 4*2*np.pi/12),color=pt.color['r'],label='r')
plt.plot(x,np.sin(x- 6*2*np.pi/12),color=pt.color['y'],label='y')
Expand Down
Loading

0 comments on commit 1647ae6

Please sign in to comment.