frenchplotlib 0.2.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- frenchplotlib-0.4.0/PKG-INFO +213 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/README.md +9 -2
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/dorures.py +3 -0
- frenchplotlib-0.4.0/frenchplotlib.egg-info/PKG-INFO +213 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/pyproject.toml +2 -1
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/setup.py +1 -1
- frenchplotlib-0.2.0/PKG-INFO +0 -12
- frenchplotlib-0.2.0/frenchplotlib.egg-info/PKG-INFO +0 -12
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/__init__.py +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/baguette.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/boule.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/bretzel.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/brioche.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/camembert.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/croissant.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/eclair.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/escargot.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/fougasse.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/fromage.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/macaron.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/madeleine.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/nous/mathis.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/nous/moi.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/pain_au_chocolat.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/pain_de_mie.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/pita.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/religieuse.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/assets/vin.svg +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/baguetteplot.py +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib/converter.py +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib.egg-info/SOURCES.txt +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib.egg-info/dependency_links.txt +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib.egg-info/requires.txt +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/frenchplotlib.egg-info/top_level.txt +0 -0
- {frenchplotlib-0.2.0 → frenchplotlib-0.4.0}/setup.cfg +0 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: frenchplotlib
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: French-themed matplotlib markers and colormaps
|
|
5
|
+
Home-page: https://github.com/PhilZPhaZ/frenchplotlib
|
|
6
|
+
Author: philzphaz
|
|
7
|
+
Requires-Python: >=3.6
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Requires-Dist: matplotlib
|
|
10
|
+
Requires-Dist: numpy
|
|
11
|
+
Dynamic: author
|
|
12
|
+
Dynamic: home-page
|
|
13
|
+
Dynamic: requires-python
|
|
14
|
+
|
|
15
|
+
# 🥖 frenchplotlib
|
|
16
|
+
|
|
17
|
+
Une bibliothèque Python pour ajouter une touche française à vos visualisations matplotlib avec des marqueurs personnalisés et des palettes de couleurs inspirées de la France.
|
|
18
|
+
|
|
19
|
+
## 📝 Description
|
|
20
|
+
|
|
21
|
+
**frenchplotlib** enrichit vos graphiques matplotlib avec :
|
|
22
|
+
|
|
23
|
+
- 🥐 **17 marqueurs personnalisés** en forme d'icônes françaises (baguette, croissant, vin, fromage, etc.)
|
|
24
|
+
- 🎨 **16 palettes de couleurs** inspirées de la culture française (tricolore, lavande de Provence, Bordeaux, etc.)
|
|
25
|
+
|
|
26
|
+
## 🚀 Installation
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install frenchplotlib
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 📦 Prérequis
|
|
33
|
+
|
|
34
|
+
- Python >= 3.6
|
|
35
|
+
- matplotlib
|
|
36
|
+
- numpy
|
|
37
|
+
|
|
38
|
+
## 💡 Utilisation
|
|
39
|
+
|
|
40
|
+
### Marqueurs personnalisés
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
import matplotlib.pyplot as plt
|
|
44
|
+
import numpy as np
|
|
45
|
+
from frenchplotlib import baguetteplot
|
|
46
|
+
|
|
47
|
+
# Données d'exemple
|
|
48
|
+
x = np.linspace(-1, 1, 20)
|
|
49
|
+
y = np.sin(x)
|
|
50
|
+
|
|
51
|
+
# Utilisation d'un marqueur en forme de boule de pain
|
|
52
|
+
plt.figure(figsize=(10, 6))
|
|
53
|
+
plt.scatter(x, y, marker=baguetteplot.boule, s=500)
|
|
54
|
+
plt.title("Graphique avec marqueur français")
|
|
55
|
+
plt.show()
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Palettes de couleurs
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
import matplotlib.pyplot as plt
|
|
62
|
+
import numpy as np
|
|
63
|
+
from frenchplotlib import baguetteplot, dorures
|
|
64
|
+
|
|
65
|
+
# Données d'exemple
|
|
66
|
+
x = np.linspace(-1, 1, 20)
|
|
67
|
+
y = np.sin(x)
|
|
68
|
+
|
|
69
|
+
# Combinaison marqueur + palette de couleurs
|
|
70
|
+
plt.figure(figsize=(12, 6))
|
|
71
|
+
plt.scatter(x, y, c=y, marker=baguetteplot.boule, s=1000, cmap=dorures.escargot_persil)
|
|
72
|
+
plt.colorbar(label='Valeurs')
|
|
73
|
+
plt.title("Visualisation à la française")
|
|
74
|
+
plt.show()
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 🥐 Marqueurs disponibles (baguetteplot)
|
|
78
|
+
|
|
79
|
+
- `baguette` - Une baguette traditionnelle
|
|
80
|
+
- `pain_de_mie` - Pain de mie
|
|
81
|
+
- `croissant` - Croissant doré
|
|
82
|
+
- `pain_au_chocolat` - Pain au chocolat (ou chocolatine 😉)
|
|
83
|
+
- `boule` - Boule de pain
|
|
84
|
+
- `brioche` - Brioche dorée
|
|
85
|
+
- `bretzel` - Bretzel alsacien
|
|
86
|
+
- `fougasse` - Fougasse provençale
|
|
87
|
+
- `pita` - Pain pita
|
|
88
|
+
- `vin` - Verre de vin
|
|
89
|
+
- `fromage` - Morceau de fromage
|
|
90
|
+
- `eclair` - Éclair au chocolat
|
|
91
|
+
- `macaron` - Macaron parisien
|
|
92
|
+
- `camembert` - Camembert de Normandie
|
|
93
|
+
- `madeleine` - Madeleine de Proust
|
|
94
|
+
- `religieuse` - Religieuse au chocolat
|
|
95
|
+
- `escargot` - Escargot de Bourgogne
|
|
96
|
+
|
|
97
|
+
## 🎨 Palettes de couleurs (dorures)
|
|
98
|
+
|
|
99
|
+
### Palettes gourmandes
|
|
100
|
+
|
|
101
|
+
- `pain_dore` - Du blanc crème au brun doré
|
|
102
|
+
- `baguette_bien_cuite` - Dégradé de cuisson parfaite
|
|
103
|
+
- `croissant_beurre` - Or brillant et miel
|
|
104
|
+
- `fromage` - Palette des fromages français
|
|
105
|
+
- `macaron` - Couleurs pastel gourmandes
|
|
106
|
+
|
|
107
|
+
### Palettes régionales
|
|
108
|
+
|
|
109
|
+
- `tricolore` - Drapeau français (bleu, blanc, rouge)
|
|
110
|
+
- `lavande` - Lavande de Provence
|
|
111
|
+
- `cote_azur` - Mer et ciel méditerranéens
|
|
112
|
+
- `bourgogne` - Couleurs d'automne bourguignonnes
|
|
113
|
+
- `versailles` - Or et splendeur royale
|
|
114
|
+
- `nuit_parisienne` - Or et splendeur royale
|
|
115
|
+
|
|
116
|
+
### Palettes viticoles
|
|
117
|
+
|
|
118
|
+
- `bordeaux` - Du rosé au rouge profond
|
|
119
|
+
- `champagne` - Pétillant et doré
|
|
120
|
+
|
|
121
|
+
### Palettes spéciales
|
|
122
|
+
|
|
123
|
+
- `escargot_persil` - Marron gris-vert
|
|
124
|
+
- `french_kiss` - Rouge passionnel
|
|
125
|
+
- `je_m_en_fous` - Gris perle élégant
|
|
126
|
+
|
|
127
|
+
## 📊 Exemples avancés
|
|
128
|
+
|
|
129
|
+
### Graphique multi-marqueurs
|
|
130
|
+
|
|
131
|
+
```python
|
|
132
|
+
import matplotlib.pyplot as plt
|
|
133
|
+
import numpy as np
|
|
134
|
+
from frenchplotlib import baguetteplot, dorures
|
|
135
|
+
|
|
136
|
+
fig, ax = plt.subplots(figsize=(12, 8))
|
|
137
|
+
|
|
138
|
+
# Différents marqueurs
|
|
139
|
+
marqueurs = [baguetteplot.croissant, baguetteplot.vin, baguetteplot.fromage, baguetteplot.macaron]
|
|
140
|
+
couleurs = ['#FFD700', '#8B0000', '#F5DEB3', '#FFB6C1']
|
|
141
|
+
labels = ['Croissant', 'Vin', 'Fromage', 'Macaron']
|
|
142
|
+
|
|
143
|
+
for i, (marker, color, label) in enumerate(zip(marqueurs, couleurs, labels)):
|
|
144
|
+
x = np.random.randn(10) + i*2
|
|
145
|
+
y = np.random.randn(10) + i
|
|
146
|
+
ax.scatter(x, y, marker=marker, s=800, c=color, label=label, alpha=0.7)
|
|
147
|
+
|
|
148
|
+
ax.legend(loc='best')
|
|
149
|
+
ax.set_title('Les délices de France', fontsize=16)
|
|
150
|
+
plt.show()
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Heatmap avec palette française
|
|
154
|
+
|
|
155
|
+
```python
|
|
156
|
+
import matplotlib.pyplot as plt
|
|
157
|
+
import numpy as np
|
|
158
|
+
from frenchplotlib import dorures
|
|
159
|
+
|
|
160
|
+
# Données aléatoires
|
|
161
|
+
data = np.random.rand(10, 10)
|
|
162
|
+
|
|
163
|
+
plt.figure(figsize=(10, 8))
|
|
164
|
+
plt.imshow(data, cmap=dorures.tricolore, aspect='auto')
|
|
165
|
+
plt.colorbar(label='Intensité')
|
|
166
|
+
plt.title('Heatmap tricolore')
|
|
167
|
+
plt.show()
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## 🛠️ Développement
|
|
171
|
+
|
|
172
|
+
### Installation en mode développement
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
git clone https://github.com/PhilZPhaZ/frenchplotlib.git
|
|
176
|
+
cd frenchplotlib
|
|
177
|
+
pip install -e .
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Structure du projet
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
frenchplotlib/
|
|
184
|
+
├── frenchplotlib/
|
|
185
|
+
│ ├── __init__.py
|
|
186
|
+
│ ├── baguetteplot.py # Marqueurs personnalisés
|
|
187
|
+
│ └── dorures.py # Palettes de couleurs
|
|
188
|
+
├── main.py # Exemple d'utilisation
|
|
189
|
+
├── setup.py
|
|
190
|
+
├── pyproject.toml
|
|
191
|
+
└── README.md
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
## 📄 Licence
|
|
195
|
+
|
|
196
|
+
Ce projet est sous licence MIT.
|
|
197
|
+
|
|
198
|
+
## 🤝 Contribution
|
|
199
|
+
|
|
200
|
+
Les contributions sont les bienvenues ! N'hésitez pas à :
|
|
201
|
+
|
|
202
|
+
- Signaler des bugs
|
|
203
|
+
- Proposer de nouvelles fonctionnalités
|
|
204
|
+
- Ajouter de nouveaux marqueurs ou palettes
|
|
205
|
+
- Améliorer la documentation
|
|
206
|
+
|
|
207
|
+
## 🙏 Remerciements
|
|
208
|
+
|
|
209
|
+
Merci à matplotlib pour son excellente bibliothèque de visualisation qui rend tout cela possible.
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
*Créé avec ❤️ et 🥖 en France*
|
|
@@ -5,8 +5,9 @@ Une bibliothèque Python pour ajouter une touche française à vos visualisation
|
|
|
5
5
|
## 📝 Description
|
|
6
6
|
|
|
7
7
|
**frenchplotlib** enrichit vos graphiques matplotlib avec :
|
|
8
|
+
|
|
8
9
|
- 🥐 **17 marqueurs personnalisés** en forme d'icônes françaises (baguette, croissant, vin, fromage, etc.)
|
|
9
|
-
- 🎨 **
|
|
10
|
+
- 🎨 **16 palettes de couleurs** inspirées de la culture française (tricolore, lavande de Provence, Bordeaux, etc.)
|
|
10
11
|
|
|
11
12
|
## 🚀 Installation
|
|
12
13
|
|
|
@@ -82,6 +83,7 @@ plt.show()
|
|
|
82
83
|
## 🎨 Palettes de couleurs (dorures)
|
|
83
84
|
|
|
84
85
|
### Palettes gourmandes
|
|
86
|
+
|
|
85
87
|
- `pain_dore` - Du blanc crème au brun doré
|
|
86
88
|
- `baguette_bien_cuite` - Dégradé de cuisson parfaite
|
|
87
89
|
- `croissant_beurre` - Or brillant et miel
|
|
@@ -89,17 +91,21 @@ plt.show()
|
|
|
89
91
|
- `macaron` - Couleurs pastel gourmandes
|
|
90
92
|
|
|
91
93
|
### Palettes régionales
|
|
94
|
+
|
|
92
95
|
- `tricolore` - Drapeau français (bleu, blanc, rouge)
|
|
93
96
|
- `lavande` - Lavande de Provence
|
|
94
97
|
- `cote_azur` - Mer et ciel méditerranéens
|
|
95
98
|
- `bourgogne` - Couleurs d'automne bourguignonnes
|
|
96
99
|
- `versailles` - Or et splendeur royale
|
|
100
|
+
- `nuit_parisienne` - Or et splendeur royale
|
|
97
101
|
|
|
98
102
|
### Palettes viticoles
|
|
103
|
+
|
|
99
104
|
- `bordeaux` - Du rosé au rouge profond
|
|
100
105
|
- `champagne` - Pétillant et doré
|
|
101
106
|
|
|
102
107
|
### Palettes spéciales
|
|
108
|
+
|
|
103
109
|
- `escargot_persil` - Marron gris-vert
|
|
104
110
|
- `french_kiss` - Rouge passionnel
|
|
105
111
|
- `je_m_en_fous` - Gris perle élégant
|
|
@@ -152,7 +158,7 @@ plt.show()
|
|
|
152
158
|
### Installation en mode développement
|
|
153
159
|
|
|
154
160
|
```bash
|
|
155
|
-
git clone https://github.com/
|
|
161
|
+
git clone https://github.com/PhilZPhaZ/frenchplotlib.git
|
|
156
162
|
cd frenchplotlib
|
|
157
163
|
pip install -e .
|
|
158
164
|
```
|
|
@@ -178,6 +184,7 @@ Ce projet est sous licence MIT.
|
|
|
178
184
|
## 🤝 Contribution
|
|
179
185
|
|
|
180
186
|
Les contributions sont les bienvenues ! N'hésitez pas à :
|
|
187
|
+
|
|
181
188
|
- Signaler des bugs
|
|
182
189
|
- Proposer de nouvelles fonctionnalités
|
|
183
190
|
- Ajouter de nouveaux marqueurs ou palettes
|
|
@@ -44,3 +44,6 @@ macaron = ListedColormap(['#FFE4E1', '#FFB6C1', '#DDA0DD', '#B0E0E6', '#98FB98',
|
|
|
44
44
|
|
|
45
45
|
# Versailles (or et royal)
|
|
46
46
|
versailles = LinearSegmentedColormap.from_list('versailles', ['#FFF8DC', '#FFD700', '#DAA520', '#B8860B', '#8B7355', '#654321'])
|
|
47
|
+
|
|
48
|
+
# Nuit parisienne (bleu nuit et lumières dorées)
|
|
49
|
+
nuit_parisienne = LinearSegmentedColormap.from_list('nuit_parisienne', ['#000033', '#000066', '#000099', '#3333FF', '#FFFF00', '#FFD700'])
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: frenchplotlib
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: French-themed matplotlib markers and colormaps
|
|
5
|
+
Home-page: https://github.com/PhilZPhaZ/frenchplotlib
|
|
6
|
+
Author: philzphaz
|
|
7
|
+
Requires-Python: >=3.6
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Requires-Dist: matplotlib
|
|
10
|
+
Requires-Dist: numpy
|
|
11
|
+
Dynamic: author
|
|
12
|
+
Dynamic: home-page
|
|
13
|
+
Dynamic: requires-python
|
|
14
|
+
|
|
15
|
+
# 🥖 frenchplotlib
|
|
16
|
+
|
|
17
|
+
Une bibliothèque Python pour ajouter une touche française à vos visualisations matplotlib avec des marqueurs personnalisés et des palettes de couleurs inspirées de la France.
|
|
18
|
+
|
|
19
|
+
## 📝 Description
|
|
20
|
+
|
|
21
|
+
**frenchplotlib** enrichit vos graphiques matplotlib avec :
|
|
22
|
+
|
|
23
|
+
- 🥐 **17 marqueurs personnalisés** en forme d'icônes françaises (baguette, croissant, vin, fromage, etc.)
|
|
24
|
+
- 🎨 **16 palettes de couleurs** inspirées de la culture française (tricolore, lavande de Provence, Bordeaux, etc.)
|
|
25
|
+
|
|
26
|
+
## 🚀 Installation
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install frenchplotlib
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 📦 Prérequis
|
|
33
|
+
|
|
34
|
+
- Python >= 3.6
|
|
35
|
+
- matplotlib
|
|
36
|
+
- numpy
|
|
37
|
+
|
|
38
|
+
## 💡 Utilisation
|
|
39
|
+
|
|
40
|
+
### Marqueurs personnalisés
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
import matplotlib.pyplot as plt
|
|
44
|
+
import numpy as np
|
|
45
|
+
from frenchplotlib import baguetteplot
|
|
46
|
+
|
|
47
|
+
# Données d'exemple
|
|
48
|
+
x = np.linspace(-1, 1, 20)
|
|
49
|
+
y = np.sin(x)
|
|
50
|
+
|
|
51
|
+
# Utilisation d'un marqueur en forme de boule de pain
|
|
52
|
+
plt.figure(figsize=(10, 6))
|
|
53
|
+
plt.scatter(x, y, marker=baguetteplot.boule, s=500)
|
|
54
|
+
plt.title("Graphique avec marqueur français")
|
|
55
|
+
plt.show()
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Palettes de couleurs
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
import matplotlib.pyplot as plt
|
|
62
|
+
import numpy as np
|
|
63
|
+
from frenchplotlib import baguetteplot, dorures
|
|
64
|
+
|
|
65
|
+
# Données d'exemple
|
|
66
|
+
x = np.linspace(-1, 1, 20)
|
|
67
|
+
y = np.sin(x)
|
|
68
|
+
|
|
69
|
+
# Combinaison marqueur + palette de couleurs
|
|
70
|
+
plt.figure(figsize=(12, 6))
|
|
71
|
+
plt.scatter(x, y, c=y, marker=baguetteplot.boule, s=1000, cmap=dorures.escargot_persil)
|
|
72
|
+
plt.colorbar(label='Valeurs')
|
|
73
|
+
plt.title("Visualisation à la française")
|
|
74
|
+
plt.show()
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 🥐 Marqueurs disponibles (baguetteplot)
|
|
78
|
+
|
|
79
|
+
- `baguette` - Une baguette traditionnelle
|
|
80
|
+
- `pain_de_mie` - Pain de mie
|
|
81
|
+
- `croissant` - Croissant doré
|
|
82
|
+
- `pain_au_chocolat` - Pain au chocolat (ou chocolatine 😉)
|
|
83
|
+
- `boule` - Boule de pain
|
|
84
|
+
- `brioche` - Brioche dorée
|
|
85
|
+
- `bretzel` - Bretzel alsacien
|
|
86
|
+
- `fougasse` - Fougasse provençale
|
|
87
|
+
- `pita` - Pain pita
|
|
88
|
+
- `vin` - Verre de vin
|
|
89
|
+
- `fromage` - Morceau de fromage
|
|
90
|
+
- `eclair` - Éclair au chocolat
|
|
91
|
+
- `macaron` - Macaron parisien
|
|
92
|
+
- `camembert` - Camembert de Normandie
|
|
93
|
+
- `madeleine` - Madeleine de Proust
|
|
94
|
+
- `religieuse` - Religieuse au chocolat
|
|
95
|
+
- `escargot` - Escargot de Bourgogne
|
|
96
|
+
|
|
97
|
+
## 🎨 Palettes de couleurs (dorures)
|
|
98
|
+
|
|
99
|
+
### Palettes gourmandes
|
|
100
|
+
|
|
101
|
+
- `pain_dore` - Du blanc crème au brun doré
|
|
102
|
+
- `baguette_bien_cuite` - Dégradé de cuisson parfaite
|
|
103
|
+
- `croissant_beurre` - Or brillant et miel
|
|
104
|
+
- `fromage` - Palette des fromages français
|
|
105
|
+
- `macaron` - Couleurs pastel gourmandes
|
|
106
|
+
|
|
107
|
+
### Palettes régionales
|
|
108
|
+
|
|
109
|
+
- `tricolore` - Drapeau français (bleu, blanc, rouge)
|
|
110
|
+
- `lavande` - Lavande de Provence
|
|
111
|
+
- `cote_azur` - Mer et ciel méditerranéens
|
|
112
|
+
- `bourgogne` - Couleurs d'automne bourguignonnes
|
|
113
|
+
- `versailles` - Or et splendeur royale
|
|
114
|
+
- `nuit_parisienne` - Or et splendeur royale
|
|
115
|
+
|
|
116
|
+
### Palettes viticoles
|
|
117
|
+
|
|
118
|
+
- `bordeaux` - Du rosé au rouge profond
|
|
119
|
+
- `champagne` - Pétillant et doré
|
|
120
|
+
|
|
121
|
+
### Palettes spéciales
|
|
122
|
+
|
|
123
|
+
- `escargot_persil` - Marron gris-vert
|
|
124
|
+
- `french_kiss` - Rouge passionnel
|
|
125
|
+
- `je_m_en_fous` - Gris perle élégant
|
|
126
|
+
|
|
127
|
+
## 📊 Exemples avancés
|
|
128
|
+
|
|
129
|
+
### Graphique multi-marqueurs
|
|
130
|
+
|
|
131
|
+
```python
|
|
132
|
+
import matplotlib.pyplot as plt
|
|
133
|
+
import numpy as np
|
|
134
|
+
from frenchplotlib import baguetteplot, dorures
|
|
135
|
+
|
|
136
|
+
fig, ax = plt.subplots(figsize=(12, 8))
|
|
137
|
+
|
|
138
|
+
# Différents marqueurs
|
|
139
|
+
marqueurs = [baguetteplot.croissant, baguetteplot.vin, baguetteplot.fromage, baguetteplot.macaron]
|
|
140
|
+
couleurs = ['#FFD700', '#8B0000', '#F5DEB3', '#FFB6C1']
|
|
141
|
+
labels = ['Croissant', 'Vin', 'Fromage', 'Macaron']
|
|
142
|
+
|
|
143
|
+
for i, (marker, color, label) in enumerate(zip(marqueurs, couleurs, labels)):
|
|
144
|
+
x = np.random.randn(10) + i*2
|
|
145
|
+
y = np.random.randn(10) + i
|
|
146
|
+
ax.scatter(x, y, marker=marker, s=800, c=color, label=label, alpha=0.7)
|
|
147
|
+
|
|
148
|
+
ax.legend(loc='best')
|
|
149
|
+
ax.set_title('Les délices de France', fontsize=16)
|
|
150
|
+
plt.show()
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Heatmap avec palette française
|
|
154
|
+
|
|
155
|
+
```python
|
|
156
|
+
import matplotlib.pyplot as plt
|
|
157
|
+
import numpy as np
|
|
158
|
+
from frenchplotlib import dorures
|
|
159
|
+
|
|
160
|
+
# Données aléatoires
|
|
161
|
+
data = np.random.rand(10, 10)
|
|
162
|
+
|
|
163
|
+
plt.figure(figsize=(10, 8))
|
|
164
|
+
plt.imshow(data, cmap=dorures.tricolore, aspect='auto')
|
|
165
|
+
plt.colorbar(label='Intensité')
|
|
166
|
+
plt.title('Heatmap tricolore')
|
|
167
|
+
plt.show()
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## 🛠️ Développement
|
|
171
|
+
|
|
172
|
+
### Installation en mode développement
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
git clone https://github.com/PhilZPhaZ/frenchplotlib.git
|
|
176
|
+
cd frenchplotlib
|
|
177
|
+
pip install -e .
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Structure du projet
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
frenchplotlib/
|
|
184
|
+
├── frenchplotlib/
|
|
185
|
+
│ ├── __init__.py
|
|
186
|
+
│ ├── baguetteplot.py # Marqueurs personnalisés
|
|
187
|
+
│ └── dorures.py # Palettes de couleurs
|
|
188
|
+
├── main.py # Exemple d'utilisation
|
|
189
|
+
├── setup.py
|
|
190
|
+
├── pyproject.toml
|
|
191
|
+
└── README.md
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
## 📄 Licence
|
|
195
|
+
|
|
196
|
+
Ce projet est sous licence MIT.
|
|
197
|
+
|
|
198
|
+
## 🤝 Contribution
|
|
199
|
+
|
|
200
|
+
Les contributions sont les bienvenues ! N'hésitez pas à :
|
|
201
|
+
|
|
202
|
+
- Signaler des bugs
|
|
203
|
+
- Proposer de nouvelles fonctionnalités
|
|
204
|
+
- Ajouter de nouveaux marqueurs ou palettes
|
|
205
|
+
- Améliorer la documentation
|
|
206
|
+
|
|
207
|
+
## 🙏 Remerciements
|
|
208
|
+
|
|
209
|
+
Merci à matplotlib pour son excellente bibliothèque de visualisation qui rend tout cela possible.
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
*Créé avec ❤️ et 🥖 en France*
|
|
@@ -4,8 +4,9 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "frenchplotlib"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.4.0"
|
|
8
8
|
description = "French-themed matplotlib markers and colormaps"
|
|
9
|
+
readme = { file = "README.md", content-type = "text/markdown" }
|
|
9
10
|
requires-python = ">=3.6"
|
|
10
11
|
dependencies = [
|
|
11
12
|
"matplotlib",
|
frenchplotlib-0.2.0/PKG-INFO
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: frenchplotlib
|
|
3
|
-
Version: 0.2.0
|
|
4
|
-
Summary: French-themed matplotlib markers and colormaps
|
|
5
|
-
Home-page: https://github.com/PhilZPhaZ/frenchplotlib
|
|
6
|
-
Author: philzphaz
|
|
7
|
-
Requires-Python: >=3.6
|
|
8
|
-
Requires-Dist: matplotlib
|
|
9
|
-
Requires-Dist: numpy
|
|
10
|
-
Dynamic: author
|
|
11
|
-
Dynamic: home-page
|
|
12
|
-
Dynamic: requires-python
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: frenchplotlib
|
|
3
|
-
Version: 0.2.0
|
|
4
|
-
Summary: French-themed matplotlib markers and colormaps
|
|
5
|
-
Home-page: https://github.com/PhilZPhaZ/frenchplotlib
|
|
6
|
-
Author: philzphaz
|
|
7
|
-
Requires-Python: >=3.6
|
|
8
|
-
Requires-Dist: matplotlib
|
|
9
|
-
Requires-Dist: numpy
|
|
10
|
-
Dynamic: author
|
|
11
|
-
Dynamic: home-page
|
|
12
|
-
Dynamic: requires-python
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|