Skip to content

Commit 69d2287

Browse files
committed
update
1 parent 1e8ebe8 commit 69d2287

File tree

4 files changed

+165
-2
lines changed

4 files changed

+165
-2
lines changed

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"activityBar.background": "#132D57",
4+
"titleBar.activeBackground": "#1B3E7A",
5+
"titleBar.activeForeground": "#F7FAFD"
6+
}
7+
}

README.md

Lines changed: 158 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,158 @@
1-
# Matplotlib_CodeDump
2-
Data visualization
1+
[![author](https://img.shields.io/badge/author-mohd--faizy-red)](https://github.com/mohd-faizy)
2+
![made-with-Markdown](https://img.shields.io/badge/Made%20with-markdown-blue)
3+
![Language](https://img.shields.io/github/languages/top/mohd-faizy/Learn_Matplotlib)
4+
![Maintained](https://img.shields.io/maintenance/yes/2024)
5+
![Last Commit](https://img.shields.io/github/last-commit/mohd-faizy/Learn_Matplotlib)
6+
[![contributions welcome](https://img.shields.io/static/v1.svg?label=Contributions&message=Welcome&color=0059b3&style=flat-square)](https://github.com/mohd-faizy/Learn_Matplotlib)
7+
![Size](https://img.shields.io/github/repo-size/mohd-faizy/Learn_Matplotlib)
8+
9+
# Matplotlib
10+
11+
![Matplotlib-banner](https://github.com/mohd-faizy/Learn_Matplotlib/blob/main/_img/matplotlib-banner.jpg)
12+
13+
Welcome to the Matplotlib repository! This repo is dedicated to providing helpful resources, tutorials, and examples for using the Matplotlib library in Python.
14+
15+
## Table of Contents
16+
17+
- [Matplotlib](#matplotlib)
18+
- [Table of Contents](#table-of-contents)
19+
- [Roadmap](#roadmap)
20+
- [Introduction](#introduction)
21+
- [Installation](#installation)
22+
- [Usage](#usage)
23+
- [Basic Plot](#basic-plot)
24+
- [Subplots](#subplots)
25+
- [Customizing Plots](#customizing-plots)
26+
- [3D Plotting](#3d-plotting)
27+
- [Features](#features)
28+
29+
30+
## Roadmap
31+
32+
![Matplotlib-roadmap](https://github.com/mohd-faizy/Learn_Matplotlib/blob/main/_img/Matplotlib-Roadmap.png)
33+
34+
## Introduction
35+
36+
Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. It provides an object-oriented API for embedding plots into applications.
37+
38+
This repository aims to help users of all skill levels to better understand and utilize the Matplotlib library through comprehensive guides, code snippets, and example projects.
39+
40+
## Installation
41+
42+
To install Matplotlib, you can use pip, the Python package installer. Ensure you have Python installed, then run:
43+
44+
```bash
45+
pip install matplotlib
46+
```
47+
48+
For more detailed installation instructions, please refer to the [official Matplotlib installation guide](https://matplotlib.org/stable/users/installing.html).
49+
50+
## Usage
51+
52+
Here are some basic examples to get you started with Matplotlib:
53+
54+
### Basic Plot
55+
56+
```python
57+
import matplotlib.pyplot as plt
58+
59+
x = [1, 2, 3, 4, 5]
60+
y = [10, 20, 25, 30, 35]
61+
62+
plt.plot(x, y)
63+
plt.title('Basic Plot')
64+
plt.xlabel('X-axis')
65+
plt.ylabel('Y-axis')
66+
plt.show()
67+
```
68+
69+
### Subplots
70+
71+
```python
72+
import matplotlib.pyplot as plt
73+
74+
x = [1, 2, 3, 4, 5]
75+
y1 = [10, 20, 25, 30, 35]
76+
y2 = [15, 25, 20, 30, 40]
77+
78+
fig, axs = plt.subplots(2)
79+
80+
axs[0].plot(x, y1, 'r')
81+
axs[0].set_title('First Subplot')
82+
axs[1].plot(x, y2, 'b')
83+
axs[1].set_title('Second Subplot')
84+
85+
plt.tight_layout()
86+
plt.show()
87+
```
88+
89+
### Customizing Plots
90+
91+
```python
92+
import matplotlib.pyplot as plt
93+
94+
x = [1, 2, 3, 4, 5]
95+
y = [10, 20, 25, 30, 35]
96+
97+
plt.plot(x, y, marker='o', linestyle='--', color='g', label='Line with Markers')
98+
plt.title('Customized Plot')
99+
plt.xlabel('X-axis')
100+
plt.ylabel('Y-axis')
101+
plt.legend()
102+
plt.grid(True)
103+
plt.show()
104+
```
105+
106+
### 3D Plotting
107+
108+
```python
109+
import matplotlib.pyplot as plt
110+
from mpl_toolkits.mplot3d import Axes3D
111+
import numpy as np
112+
113+
fig = plt.figure()
114+
ax = fig.add_subplot(111, projection='3d')
115+
116+
x = np.linspace(-5, 5, 100)
117+
y = np.linspace(-5, 5, 100)
118+
X, Y = np.meshgrid(x, y)
119+
Z = np.sin(np.sqrt(X**2 + Y**2))
120+
121+
ax.plot_surface(X, Y, Z, cmap='viridis')
122+
123+
plt.title('3D Surface Plot')
124+
plt.show()
125+
```
126+
127+
For more examples and detailed tutorials, please refer to the [official Matplotlib documentation](https://matplotlib.org/stable/contents.html).
128+
129+
## Features
130+
131+
- Comprehensive library for creating static, animated, and interactive visualizations
132+
- Object-oriented API for embedding plots
133+
- Support for a wide range of plots and visualizations
134+
- Customization capabilities for plots
135+
136+
## ⚖ ➤ License
137+
138+
This project is licensed under the MIT License. See [LICENSE](LICENSE) for details.
139+
140+
## ❤️ Support
141+
142+
If you find this repository helpful, show your support by starring it! For questions or feedback, reach out on [Twitter(`X`)](https://twitter.com/F4izy).
143+
144+
#### $\color{skyblue}{\textbf{Connect with me:}}$
145+
146+
➤ If you have questions or feedback, feel free to reach out!!!
147+
148+
[<img align="left" src="https://cdn4.iconfinder.com/data/icons/social-media-icons-the-circle-set/48/twitter_circle-512.png" width="32px"/>][twitter]
149+
[<img align="left" src="https://cdn-icons-png.flaticon.com/512/145/145807.png" width="32px"/>][linkedin]
150+
[<img align="left" src="https://cdn-icons-png.flaticon.com/512/2626/2626299.png" width="32px"/>][Portfolio]
151+
152+
[twitter]: https://twitter.com/F4izy
153+
[linkedin]: https://www.linkedin.com/in/mohd-faizy/
154+
[Portfolio]: https://ai.stackexchange.com/users/36737/faizy?tab=profile
155+
156+
---
157+
158+
<img src="https://github-readme-stats.vercel.app/api?username=mohd-faizy&show_icons=true" width=380px height=200px />

_img/Matplotlib-Roadmap.png

268 KB
Loading

_img/matplotlib-banner.jpg

1.19 MB
Loading

0 commit comments

Comments
 (0)