diff --git a/README.md b/README.md index 253b8c5..d88add2 100644 --- a/README.md +++ b/README.md @@ -266,17 +266,21 @@ Similarly, ternary can make scatter plots: ```python import ternary - + import numpy as np + ### Scatter Plot scale = 40 figure, tax = ternary.figure(scale=scale) tax.set_title("Scatter Plot", fontsize=20) tax.boundary(linewidth=2.0) tax.gridlines(multiple=5, color="blue") + # Plot a few different styles with a legend - points = random_points(30, scale=scale) + points = random_points(30) + points = list(np.array(points) * scale) tax.scatter(points, marker='s', color='red', label="Red Squares") - points = random_points(30, scale=scale) + points = random_points(30) + points = list(np.array(points) * scale) tax.scatter(points, marker='D', color='green', label="Green Diamonds") tax.legend() tax.ticks(axis='lbr', linewidth=1, multiple=5)