File:Beaufort diagram.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 540 × 360 pixels, file size: 43 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Beaufort scale diagram
Date
Source Own work using code from File:Beaufort diagram.png by Christian Fischer
Author Ixfd64

Source code[edit]

Converted to Python 3 and cleaned up:

# -*- coding: utf-8 -*-

from __future__ import division
import numpy as np
import matplotlib.pyplot as plt

# data and functions
filename1 = 'beaufort_diagram'
bft = np.arange(13) - 0.5
bft[0] = 0.0
v_1 = np.array([0, 1, 4, 7, 11, 16, 22, 28, 34, 41, 48, 56, 64])

# make figure
filetype = "svg"
fig11 = plt.figure(figsize=(6, 4))

ax11 = fig11.add_subplot(111)

# plot stuff
ax11.plot(bft, v_1, '-ob')
ax11.set_ylabel(u'Geschwindigkeit in Knoten (10m über Boden)')
ax11.set_xlabel(r'Geschwindigkeit in Beaufort')
ax11.set_xlim((0.0, 12.5))
ax11.set_ylim((0, 70))
ax11.set_xticks(np.arange(13))
ax11.set_yticks(np.arange(14) * 5)
ax11.yaxis.grid(True)

ax11.annotate(str(1), xy=(0.6, 2))
for i, j in zip(bft, v_1):
    ax11.annotate(str(j), xy=(i + 0.1, j - 1.5))

for bf in bft:
    ax11.axvline(x=bf, color='k', ls='-')

# adjust and generate the plot
fig11.subplots_adjust(left=0.09, bottom=0.11, right=0.98, top=0.95)

fig11.savefig(filename1 + '.' + filetype)

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current19:10, 2 May 2023Thumbnail for version as of 19:10, 2 May 2023540 × 360 (43 KB)Ixfd64 (talk | contribs)Uploaded own work with UploadWizard

The following page uses this file:

Metadata