frenchplotlib 0.2.0__py3-none-any.whl → 0.4.0__py3-none-any.whl

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/dorures.py CHANGED
@@ -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*
@@ -1,7 +1,7 @@
1
1
  frenchplotlib/__init__.py,sha256=SwuEkVMNHilbBhdUEyKyxvTJ-0qQO88BkGGj7HMMcUs,501
2
2
  frenchplotlib/baguetteplot.py,sha256=J9yDVY2848_VnVBlIU66ktdbQ_FBRjkJTAbSBcB738c,1054212
3
3
  frenchplotlib/converter.py,sha256=j3THVee5VrkVnYBCs4OKTe9crxsrpx7ffnmgo4FesP8,3864
4
- frenchplotlib/dorures.py,sha256=lbRc5IW_388PlF8F5pfkO8SKxHQjO-Yn3FYCltvUfdo,2395
4
+ frenchplotlib/dorures.py,sha256=CDUQC2eLRX5z2UAwKfTgSzKSrrvM0hoTFTJbbgtTy0Y,2586
5
5
  frenchplotlib/assets/baguette.svg,sha256=Gz8UlVlZ-tEjXcrytc4GURBu6qjj9M5NBbd4_skSGr4,2178
6
6
  frenchplotlib/assets/boule.svg,sha256=tq4376UcoDMZzFc9PIiJABMQ5a2FXz41wqskl4xhRQg,7304
7
7
  frenchplotlib/assets/bretzel.svg,sha256=v3fZZ5jzni05ilOu47SUjAY34hFUz8Yi9vF2GXLNOXI,5566
@@ -21,7 +21,7 @@ frenchplotlib/assets/religieuse.svg,sha256=cUXtqA5610bz_8XT16BxPLiQEw3SYY09gKbCp
21
21
  frenchplotlib/assets/vin.svg,sha256=3BibINXh2o_e_Aso6NUfyUe4Kicor_51igwIV10lv6w,6451
22
22
  frenchplotlib/assets/nous/mathis.svg,sha256=kHfrZUAh3IP2gSu0NKHGnifjXMzgh5LJsMgGhhnoSMM,69048
23
23
  frenchplotlib/assets/nous/moi.svg,sha256=IIALtyrJe4boi_9Yp9GKQv7dzkbk2YtDbxX1ef106dQ,345870
24
- frenchplotlib-0.2.0.dist-info/METADATA,sha256=2fQHAyNrzH8ugDA9y82vu821Kdgx2zMX44l5ZbW5EFk,315
25
- frenchplotlib-0.2.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
26
- frenchplotlib-0.2.0.dist-info/top_level.txt,sha256=oitgsanLokGFVInAGAje6_UuNo1zIm0vd-2_QsYwIp8,14
27
- frenchplotlib-0.2.0.dist-info/RECORD,,
24
+ frenchplotlib-0.4.0.dist-info/METADATA,sha256=UcdbdlnlLANQ6y2CbKN9qc-HT94mxMuVbKdoBdn3Eo0,5376
25
+ frenchplotlib-0.4.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
26
+ frenchplotlib-0.4.0.dist-info/top_level.txt,sha256=oitgsanLokGFVInAGAje6_UuNo1zIm0vd-2_QsYwIp8,14
27
+ frenchplotlib-0.4.0.dist-info/RECORD,,
@@ -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