चित्र:Mylpale.svg

Page contents not supported in other languages.
विकिपीडिया, मुक्‍त ज्ञानकोशातून

मूळ संचिका(SVG संचिका, साधारणपणे १,०८० × ५४० pixels, संचिकेचा आकार: ३४ कि.बा.)

ही संचिका Wikimedia Commons येथील असून ती इतर प्रकल्पात वापरलेली असू शकते. तिचे तेथील संचिका वर्णन पान खाली दाखवले आहे.

सारांश

वर्णन
Afrikaans: Aantal Afrikaanse Wikipedia Artikels met verloop van tyd
English: Number of Afrikaans Wikipedia articles over time
दिनांक
स्रोत स्वतःचे काम
लेखक Rooiratel
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from datetime import datetime
from matplotlib.ticker import MultipleLocator

# vars
dt_format = '%Y-%m-%d'

# Initialize lists to store the dates and values
dates = []
values = []

# format of mylpale_data.txt is as follows
# 2001-11-01 1
# 2002-08-01 50
# 2003-04-01 100
# etc.

# Open the text file and read the data
with open('mylpale_data.txt', 'r') as file:
    for line in file:
        # Split the line into date and value
        date_str, value_str = line.strip().split()
        # Convert the date string to a datetime object
        date = datetime.strptime(date_str, dt_format)
        # Convert the value string to an integer
        value = int(value_str)
        # Append the date and value to their respective lists
        dates.append(date)
        values.append(value)

# Create a figure and set the size
fig, ax = plt.subplots(figsize=(12, 6))  # Adjust the width and height as needed

# Plot the data
ax.plot_date(dates, values, 'o-', markersize=5, linewidth=2, color='#0060ad')

# Set the title and labels
ax.set_title("Aantal Afrikaanse Wikipedia Artikels", fontsize=14)
ax.set_xlabel("Datum")
ax.set_ylabel("Aantal Artikels")

# Set the x-axis major ticks to years
ax.xaxis.set_major_locator(mdates.YearLocator())
ax.xaxis.set_major_formatter(mdates.DateFormatter('%Y'))

# Set the x-axis range
start_date = datetime.strptime('2001-06-01', dt_format)
end_date = datetime.strptime(f"{datetime.now().year + 2}-01-01", '%Y-%m-%d')  # Use current year + 2 as the end date
ax.set_xlim(start_date, end_date)

# Set y-axis range
ax.set_ylim(0, (values[-1] + 5000))

# Set the y-axis gridlines to every 5000
ax.yaxis.set_major_locator(MultipleLocator(5000))

# Remove the x-axis and y-axis ticks
ax.xaxis.set_tick_params(which='both', bottom=False, top=False, labelbottom=True)
ax.yaxis.set_tick_params(which='both', left=False, right=False, labelleft=True)

# Add a grid
ax.grid(True)

# Add padding to the plot
ax.margins(x=0.1, y=0.1)  # Adjust x and y padding as needed

# Save the plot as an SVG file
plt.savefig("mylpale_fat.svg", format='svg', dpi=1200)

print('Klaar')

To run the above script which generates a fat .svg and to trim out all the crap for the final version of the .svg I use the following Makefile:

pysvg:
	python mylpale.py

shrink: pysvg
	scour -i mylpale_fat.svg -o mylpale.svg --enable-viewboxing --enable-id-stripping \
  --enable-comment-stripping --shorten-ids --indent=none

परवाना:

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
रोपण जसेहोते-वाटातसेच (शेअर अलाईक)
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
तुम्ही मुक्त आहात.
  • सामायिक करा – नक्कल, वितरण आणि पारेषित करण्यास
  • पुर्नमिश्रीत करण्यास – काम गरजेनुसार अनुकुलीत करण्यास
खालील अटींच्या अधिन राहून:
  • रोपण – आपण योग्य क्रेडिट देणे आवश्यक आहे, परवान्यास दुवा प्रदान करणे आवश्यक आहे, आणि बदल केले गेले आहेत हे दर्शविणे आवश्यक आहे. आपण हे कोणत्याही वाजवी मार्गाने करू शकता, परंतु परवानाधारक आपल्यास किंवा आपल्या वापरास मान्यता देतो अशा कोणत्याही मार्गाने नाही.
  • जसेहोते-वाटातसेच (शेअर अलाईक) – जर तुम्ही या कामात काही बदल केलात, काटछाट केलीत, किंवा भर घातली, तर असे करून बनलेले नवीन काम तुम्ही केवळ या किंवा यासारख्याच परवान्याअंतर्गत प्रसारित करू शकतात.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts इंग्रजी

copyright status इंग्रजी

copyrighted इंग्रजी

१५ जून 2018

source of file इंग्रजी

original creation by uploader इंग्रजी

संचिकेचा इतिहास

संचिकेची त्यावेळची आवृत्ती बघण्यासाठी त्या दिनांक/वेळेवर टिचकी द्या.

(सर्वात नवीन | सर्वात जुने) पाहा (नवे १०) () (१० | २० | ५० | १०० | २५० | ५००).
दिनांक/वेळछोटे चित्रआकारसदस्यप्रतिक्रीया
सद्य०२:१४, २ मार्च २०२४०२:१४, २ मार्च २०२४ आवृत्तीसाठी छोटे चित्र१,०८० × ५४० (३४ कि.बा.)RooiratelTot 2024-02-29
१६:४७, २९ ऑक्टोबर २०२११६:४७, २९ ऑक्टोबर २०२१ आवृत्तीसाठी छोटे चित्र५१२ × २१९ (१९ कि.बा.)Rooiratelfix axis
१६:४४, २९ ऑक्टोबर २०२११६:४४, २९ ऑक्टोबर २०२१ आवृत्तीसाठी छोटे चित्र५१२ × २१९ (२२ कि.बा.)Rooiratel100000
११:४२, २९ जानेवारी २०२१११:४२, २९ जानेवारी २०२१ आवृत्तीसाठी छोटे चित्र१,४०० × ६०० (२२ कि.बा.)Rooiratel96000
१२:२१, ३० जुलै २०२०१२:२१, ३० जुलै २०२० आवृत्तीसाठी छोटे चित्र१,४०० × ६०० (२२ कि.बा.)RooiratelFixed x-axis scaling and values.
१७:१४, २७ जुलै २०२०१७:१४, २७ जुलै २०२० आवृत्तीसाठी छोटे चित्र१,४०० × ६०० (२४ कि.बा.)Rooiratel92000 (also fixed xtic intervals)
००:०४, २३ जानेवारी २०२०००:०४, २३ जानेवारी २०२० आवृत्तीसाठी छोटे चित्र१,४०० × ६०० (३३ कि.बा.)PynappelVergroot x- en y-asse
२३:४२, २२ जानेवारी २०२०२३:४२, २२ जानेवारी २०२० आवृत्तीसाठी छोटे चित्र१,४०० × ६०० (३६ कि.बा.)Pynappel88 0000
१०:२२, १९ डिसेंबर २०१९१०:२२, १९ डिसेंबर २०१९ आवृत्तीसाठी छोटे चित्र१,४०० × ६०० (२२ कि.बा.)RooiratelMaak x-as langer.
०४:४४, १८ डिसेंबर २०१९०४:४४, १८ डिसेंबर २०१९ आवृत्तीसाठी छोटे चित्र१,४०० × ६०० (३५ कि.बा.)Pynappel87000
(सर्वात नवीन | सर्वात जुने) पाहा (नवे १०) () (१० | २० | ५० | १०० | २५० | ५००).

खालील पाने या संचिकेला जोडली आहेत:

जागतिक संचिका उपयोग

संचिकाचे इतर विकिपीडियावरील वापरः

मेटाडाटा