1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PyPlot(3) 散布図のProjection色々

Posted at

散布図のProjection色々

Projectionパラメータを色々試してみます。

基本

import numpy as np
import matplotlib.pyplot as plt

np.random.seed(20190805)

N = 150
r = 2 * np.random.rand(N)
theta = 2 * np.pi * np.random.rand(N)
area = 200 * r**2
colors = theta

fig = plt.figure()
ax = fig.add_subplot(111)
c = ax.scatter(theta, r, c=colors, s=area, cmap='hsv', alpha=0.75)

projection_01.png

aitoff

ax = fig.add_subplot(111, projection='aitoff')

projection_02.png

lambert

ax = fig.add_subplot(111, projection='lambert')

projection_04.png

mollweide

ax = fig.add_subplot(111, projection='mollweide')

projection_05.png

polar

ax = fig.add_subplot(111, projection='polar')

projection_06.png

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?