博客已经搬家到“捕获完成”:
https://www.v2python.com
散点图(scatter)
"""
======================
Style sheets reference
======================
This script demonstrates the different available style sheets on a
common set of example plots: scatter plot, image, bar graph, patches,
line plot and histogram,
"""
import numpy as np
import matplotlib.pyplot as plt
def plot_scatter(ax, prng, nb_samples=100):
"""Scatter plot.
"""
for mu, sigma, marker in [(-.5, 0.75, 'o'), (0.75, 1., 's')]:
x, y = prng.normal(loc=mu,