
import numpy as np
import matplotlib.pyplot as plt

from typhon.plots import (figsize, mpl_colors)


fig, ax = plt.subplots(figsize=figsize(10))
ax.set_prop_cycle(color=mpl_colors('qualitative2', 7))
for c in np.arange(7):
    X = np.random.randn(100)/2
    Y = np.random.randn(100)/2
    ax.plot(X+c, Y+c, linestyle='none', marker='.', markersize=20)

fig.tight_layout()
plt.show()


import numpy as np
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D

from typhon.plots import (figsize, mpl_colors)


# Create an iterator to conveniently change the marker in the following plot.
markers = (m for m in Line2D.filled_markers)

fig, ax = plt.subplots(figsize=figsize(10))
ax.set_prop_cycle(color=mpl_colors('qualitative2', 7))
for c in np.arange(7):
    X = np.random.randn(100) / 2
    Y = np.random.randn(100) / 2
    ax.plot(X+c, Y+c, linestyle='none', marker=next(markers), markersize=10)

fig.tight_layout()
plt.show()

Change marker as an example.
Change marker as an example.

  
  import numpy as np
  import matplotlib.pyplot as plt
+ from matplotlib.lines import Line2D
  
  from typhon.plots import (figsize, mpl_colors)
  
  
+ # Create an iterator to conveniently change the marker in the following plot.
+ markers = (m for m in Line2D.filled_markers)
+ 
  fig, ax = plt.subplots(figsize=figsize(10))
  ax.set_prop_cycle(color=mpl_colors('qualitative2', 7))
  for c in np.arange(7):
-     X = np.random.randn(100)/2
+     X = np.random.randn(100) / 2
-     Y = np.random.randn(100)/2
+     Y = np.random.randn(100) / 2
-     ax.plot(X+c, Y+c, linestyle='none', marker='.', markersize=20)
+     ax.plot(X+c, Y+c, linestyle='none', marker=next(markers), markersize=10)
  
  fig.tight_layout()
  plt.show()
  
Change marker as an example.
## Code Before:

import numpy as np
import matplotlib.pyplot as plt

from typhon.plots import (figsize, mpl_colors)


fig, ax = plt.subplots(figsize=figsize(10))
ax.set_prop_cycle(color=mpl_colors('qualitative2', 7))
for c in np.arange(7):
    X = np.random.randn(100)/2
    Y = np.random.randn(100)/2
    ax.plot(X+c, Y+c, linestyle='none', marker='.', markersize=20)

fig.tight_layout()
plt.show()

## Instruction:
Change marker as an example.
## Code After:

import numpy as np
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D

from typhon.plots import (figsize, mpl_colors)


# Create an iterator to conveniently change the marker in the following plot.
markers = (m for m in Line2D.filled_markers)

fig, ax = plt.subplots(figsize=figsize(10))
ax.set_prop_cycle(color=mpl_colors('qualitative2', 7))
for c in np.arange(7):
    X = np.random.randn(100) / 2
    Y = np.random.randn(100) / 2
    ax.plot(X+c, Y+c, linestyle='none', marker=next(markers), markersize=10)

fig.tight_layout()
plt.show()
