frenchplotlib 0.5.0__tar.gz → 1.0.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.5.0 → frenchplotlib-1.0.0}/PKG-INFO +9 -9
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/README.md +8 -8
- frenchplotlib-1.0.0/frenchplotlib/__init__.py +4 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/converter.py +0 -45
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib.egg-info/PKG-INFO +9 -9
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib.egg-info/SOURCES.txt +1 -1
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/pyproject.toml +1 -1
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/setup.py +1 -1
- frenchplotlib-0.5.0/frenchplotlib/__init__.py +0 -8
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/baguette.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/boule.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/bretzel.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/brioche.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/camembert.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/croissant.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/eclair.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/escargot.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/fougasse.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/fromage.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/macaron.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/madeleine.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/nous/mathis.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/nous/moi.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/pain_au_chocolat.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/pain_de_mie.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/pita.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/religieuse.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/assets/vin.svg +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib/dorures.py +0 -0
- /frenchplotlib-0.5.0/frenchplotlib/baguetteplot.py → /frenchplotlib-1.0.0/frenchplotlib/tapisseries.py +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib.egg-info/dependency_links.txt +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib.egg-info/requires.txt +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/frenchplotlib.egg-info/top_level.txt +0 -0
- {frenchplotlib-0.5.0 → frenchplotlib-1.0.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: frenchplotlib
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Summary: French-themed matplotlib markers and colormaps
|
|
5
5
|
Home-page: https://github.com/PhilZPhaZ/frenchplotlib
|
|
6
6
|
Author: philzphaz
|
|
@@ -42,7 +42,7 @@ pip install frenchplotlib
|
|
|
42
42
|
```python
|
|
43
43
|
import matplotlib.pyplot as plt
|
|
44
44
|
import numpy as np
|
|
45
|
-
from frenchplotlib import
|
|
45
|
+
from frenchplotlib import tapisseries
|
|
46
46
|
|
|
47
47
|
# Données d'exemple
|
|
48
48
|
x = np.linspace(-1, 1, 20)
|
|
@@ -50,7 +50,7 @@ y = np.sin(x)
|
|
|
50
50
|
|
|
51
51
|
# Utilisation d'un marqueur en forme de boule de pain
|
|
52
52
|
plt.figure(figsize=(10, 6))
|
|
53
|
-
plt.scatter(x, y, marker=
|
|
53
|
+
plt.scatter(x, y, marker=tapisseries.boule, s=500)
|
|
54
54
|
plt.title("Graphique avec marqueur français")
|
|
55
55
|
plt.show()
|
|
56
56
|
```
|
|
@@ -60,7 +60,7 @@ plt.show()
|
|
|
60
60
|
```python
|
|
61
61
|
import matplotlib.pyplot as plt
|
|
62
62
|
import numpy as np
|
|
63
|
-
from frenchplotlib import
|
|
63
|
+
from frenchplotlib import tapisseries, dorures
|
|
64
64
|
|
|
65
65
|
# Données d'exemple
|
|
66
66
|
x = np.linspace(-1, 1, 20)
|
|
@@ -68,13 +68,13 @@ y = np.sin(x)
|
|
|
68
68
|
|
|
69
69
|
# Combinaison marqueur + palette de couleurs
|
|
70
70
|
plt.figure(figsize=(12, 6))
|
|
71
|
-
plt.scatter(x, y, c=y, marker=
|
|
71
|
+
plt.scatter(x, y, c=y, marker=tapisseries.boule, s=1000, cmap=dorures.escargot_persil)
|
|
72
72
|
plt.colorbar(label='Valeurs')
|
|
73
73
|
plt.title("Visualisation à la française")
|
|
74
74
|
plt.show()
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
## 🥐 Marqueurs disponibles (
|
|
77
|
+
## 🥐 Marqueurs disponibles (tapisseries)
|
|
78
78
|
|
|
79
79
|
- `baguette` - Une baguette traditionnelle
|
|
80
80
|
- `pain_de_mie` - Pain de mie
|
|
@@ -131,12 +131,12 @@ plt.show()
|
|
|
131
131
|
```python
|
|
132
132
|
import matplotlib.pyplot as plt
|
|
133
133
|
import numpy as np
|
|
134
|
-
from frenchplotlib import
|
|
134
|
+
from frenchplotlib import tapisseries, dorures
|
|
135
135
|
|
|
136
136
|
fig, ax = plt.subplots(figsize=(12, 8))
|
|
137
137
|
|
|
138
138
|
# Différents marqueurs
|
|
139
|
-
marqueurs = [
|
|
139
|
+
marqueurs = [tapisseries.croissant, tapisseries.vin, tapisseries.fromage, tapisseries.macaron]
|
|
140
140
|
couleurs = ['#FFD700', '#8B0000', '#F5DEB3', '#FFB6C1']
|
|
141
141
|
labels = ['Croissant', 'Vin', 'Fromage', 'Macaron']
|
|
142
142
|
|
|
@@ -183,7 +183,7 @@ pip install -e .
|
|
|
183
183
|
frenchplotlib/
|
|
184
184
|
├── frenchplotlib/
|
|
185
185
|
│ ├── __init__.py
|
|
186
|
-
│ ├──
|
|
186
|
+
│ ├── tapisseries.py # Marqueurs personnalisés
|
|
187
187
|
│ └── dorures.py # Palettes de couleurs
|
|
188
188
|
├── main.py # Exemple d'utilisation
|
|
189
189
|
├── setup.py
|
|
@@ -28,7 +28,7 @@ pip install frenchplotlib
|
|
|
28
28
|
```python
|
|
29
29
|
import matplotlib.pyplot as plt
|
|
30
30
|
import numpy as np
|
|
31
|
-
from frenchplotlib import
|
|
31
|
+
from frenchplotlib import tapisseries
|
|
32
32
|
|
|
33
33
|
# Données d'exemple
|
|
34
34
|
x = np.linspace(-1, 1, 20)
|
|
@@ -36,7 +36,7 @@ y = np.sin(x)
|
|
|
36
36
|
|
|
37
37
|
# Utilisation d'un marqueur en forme de boule de pain
|
|
38
38
|
plt.figure(figsize=(10, 6))
|
|
39
|
-
plt.scatter(x, y, marker=
|
|
39
|
+
plt.scatter(x, y, marker=tapisseries.boule, s=500)
|
|
40
40
|
plt.title("Graphique avec marqueur français")
|
|
41
41
|
plt.show()
|
|
42
42
|
```
|
|
@@ -46,7 +46,7 @@ plt.show()
|
|
|
46
46
|
```python
|
|
47
47
|
import matplotlib.pyplot as plt
|
|
48
48
|
import numpy as np
|
|
49
|
-
from frenchplotlib import
|
|
49
|
+
from frenchplotlib import tapisseries, dorures
|
|
50
50
|
|
|
51
51
|
# Données d'exemple
|
|
52
52
|
x = np.linspace(-1, 1, 20)
|
|
@@ -54,13 +54,13 @@ y = np.sin(x)
|
|
|
54
54
|
|
|
55
55
|
# Combinaison marqueur + palette de couleurs
|
|
56
56
|
plt.figure(figsize=(12, 6))
|
|
57
|
-
plt.scatter(x, y, c=y, marker=
|
|
57
|
+
plt.scatter(x, y, c=y, marker=tapisseries.boule, s=1000, cmap=dorures.escargot_persil)
|
|
58
58
|
plt.colorbar(label='Valeurs')
|
|
59
59
|
plt.title("Visualisation à la française")
|
|
60
60
|
plt.show()
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
## 🥐 Marqueurs disponibles (
|
|
63
|
+
## 🥐 Marqueurs disponibles (tapisseries)
|
|
64
64
|
|
|
65
65
|
- `baguette` - Une baguette traditionnelle
|
|
66
66
|
- `pain_de_mie` - Pain de mie
|
|
@@ -117,12 +117,12 @@ plt.show()
|
|
|
117
117
|
```python
|
|
118
118
|
import matplotlib.pyplot as plt
|
|
119
119
|
import numpy as np
|
|
120
|
-
from frenchplotlib import
|
|
120
|
+
from frenchplotlib import tapisseries, dorures
|
|
121
121
|
|
|
122
122
|
fig, ax = plt.subplots(figsize=(12, 8))
|
|
123
123
|
|
|
124
124
|
# Différents marqueurs
|
|
125
|
-
marqueurs = [
|
|
125
|
+
marqueurs = [tapisseries.croissant, tapisseries.vin, tapisseries.fromage, tapisseries.macaron]
|
|
126
126
|
couleurs = ['#FFD700', '#8B0000', '#F5DEB3', '#FFB6C1']
|
|
127
127
|
labels = ['Croissant', 'Vin', 'Fromage', 'Macaron']
|
|
128
128
|
|
|
@@ -169,7 +169,7 @@ pip install -e .
|
|
|
169
169
|
frenchplotlib/
|
|
170
170
|
├── frenchplotlib/
|
|
171
171
|
│ ├── __init__.py
|
|
172
|
-
│ ├──
|
|
172
|
+
│ ├── tapisseries.py # Marqueurs personnalisés
|
|
173
173
|
│ └── dorures.py # Palettes de couleurs
|
|
174
174
|
├── main.py # Exemple d'utilisation
|
|
175
175
|
├── setup.py
|
|
@@ -78,48 +78,3 @@ if f'{name} = Path(' not in content:
|
|
|
78
78
|
if not content.endswith('\n'):
|
|
79
79
|
f.write('\n')
|
|
80
80
|
f.write(sample + '\n')
|
|
81
|
-
|
|
82
|
-
"""# ajouter dans __init__.py
|
|
83
|
-
init_path = os.path.join(current_dir, '__init__.py')
|
|
84
|
-
with open(init_path, 'r') as f:
|
|
85
|
-
content = f.read()
|
|
86
|
-
|
|
87
|
-
# Extraire tous les noms importés depuis breadplotlib
|
|
88
|
-
import_line_start = content.find('from .breadplotlib import')
|
|
89
|
-
if import_line_start != -1:
|
|
90
|
-
# Trouver la fin de toutes les lignes d'import
|
|
91
|
-
import_end = content.find('\n\n', import_line_start)
|
|
92
|
-
if import_end == -1:
|
|
93
|
-
import_end = content.find('__all__', import_line_start)
|
|
94
|
-
|
|
95
|
-
import_section = content[import_line_start:import_end]
|
|
96
|
-
|
|
97
|
-
# Extraire tous les noms importés
|
|
98
|
-
imported_names = []
|
|
99
|
-
for line in import_section.split('\n'):
|
|
100
|
-
if 'from .breadplotlib import' in line:
|
|
101
|
-
names = line.replace('from .breadplotlib import', '').strip()
|
|
102
|
-
imported_names.extend([n.strip() for n in names.split(',')])
|
|
103
|
-
|
|
104
|
-
# Ajouter le nouveau nom s'il n'existe pas
|
|
105
|
-
if name not in imported_names:
|
|
106
|
-
imported_names.append(name)
|
|
107
|
-
|
|
108
|
-
# Reconstruire la ligne d'import
|
|
109
|
-
new_import_line = f"from .breadplotlib import {', '.join(imported_names)}"
|
|
110
|
-
|
|
111
|
-
# Remplacer toute la section d'import par une seule ligne
|
|
112
|
-
new_content = content[:import_line_start] + new_import_line + '\n\n' + content[import_end:].lstrip('\n')
|
|
113
|
-
else:
|
|
114
|
-
# Si pas d'import existant, créer la première ligne
|
|
115
|
-
new_content = f"from .breadplotlib import {name}\n\n" + content
|
|
116
|
-
|
|
117
|
-
# Mettre à jour __all__
|
|
118
|
-
if f"'{name}'" not in new_content:
|
|
119
|
-
all_start = new_content.find("__all__ = [")
|
|
120
|
-
if all_start != -1:
|
|
121
|
-
all_end = new_content.find(']', all_start)
|
|
122
|
-
new_content = new_content[:all_end] + f", '{name}'" + new_content[all_end:]
|
|
123
|
-
|
|
124
|
-
with open(init_path, 'w') as f:
|
|
125
|
-
f.write(new_content)"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: frenchplotlib
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Summary: French-themed matplotlib markers and colormaps
|
|
5
5
|
Home-page: https://github.com/PhilZPhaZ/frenchplotlib
|
|
6
6
|
Author: philzphaz
|
|
@@ -42,7 +42,7 @@ pip install frenchplotlib
|
|
|
42
42
|
```python
|
|
43
43
|
import matplotlib.pyplot as plt
|
|
44
44
|
import numpy as np
|
|
45
|
-
from frenchplotlib import
|
|
45
|
+
from frenchplotlib import tapisseries
|
|
46
46
|
|
|
47
47
|
# Données d'exemple
|
|
48
48
|
x = np.linspace(-1, 1, 20)
|
|
@@ -50,7 +50,7 @@ y = np.sin(x)
|
|
|
50
50
|
|
|
51
51
|
# Utilisation d'un marqueur en forme de boule de pain
|
|
52
52
|
plt.figure(figsize=(10, 6))
|
|
53
|
-
plt.scatter(x, y, marker=
|
|
53
|
+
plt.scatter(x, y, marker=tapisseries.boule, s=500)
|
|
54
54
|
plt.title("Graphique avec marqueur français")
|
|
55
55
|
plt.show()
|
|
56
56
|
```
|
|
@@ -60,7 +60,7 @@ plt.show()
|
|
|
60
60
|
```python
|
|
61
61
|
import matplotlib.pyplot as plt
|
|
62
62
|
import numpy as np
|
|
63
|
-
from frenchplotlib import
|
|
63
|
+
from frenchplotlib import tapisseries, dorures
|
|
64
64
|
|
|
65
65
|
# Données d'exemple
|
|
66
66
|
x = np.linspace(-1, 1, 20)
|
|
@@ -68,13 +68,13 @@ y = np.sin(x)
|
|
|
68
68
|
|
|
69
69
|
# Combinaison marqueur + palette de couleurs
|
|
70
70
|
plt.figure(figsize=(12, 6))
|
|
71
|
-
plt.scatter(x, y, c=y, marker=
|
|
71
|
+
plt.scatter(x, y, c=y, marker=tapisseries.boule, s=1000, cmap=dorures.escargot_persil)
|
|
72
72
|
plt.colorbar(label='Valeurs')
|
|
73
73
|
plt.title("Visualisation à la française")
|
|
74
74
|
plt.show()
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
## 🥐 Marqueurs disponibles (
|
|
77
|
+
## 🥐 Marqueurs disponibles (tapisseries)
|
|
78
78
|
|
|
79
79
|
- `baguette` - Une baguette traditionnelle
|
|
80
80
|
- `pain_de_mie` - Pain de mie
|
|
@@ -131,12 +131,12 @@ plt.show()
|
|
|
131
131
|
```python
|
|
132
132
|
import matplotlib.pyplot as plt
|
|
133
133
|
import numpy as np
|
|
134
|
-
from frenchplotlib import
|
|
134
|
+
from frenchplotlib import tapisseries, dorures
|
|
135
135
|
|
|
136
136
|
fig, ax = plt.subplots(figsize=(12, 8))
|
|
137
137
|
|
|
138
138
|
# Différents marqueurs
|
|
139
|
-
marqueurs = [
|
|
139
|
+
marqueurs = [tapisseries.croissant, tapisseries.vin, tapisseries.fromage, tapisseries.macaron]
|
|
140
140
|
couleurs = ['#FFD700', '#8B0000', '#F5DEB3', '#FFB6C1']
|
|
141
141
|
labels = ['Croissant', 'Vin', 'Fromage', 'Macaron']
|
|
142
142
|
|
|
@@ -183,7 +183,7 @@ pip install -e .
|
|
|
183
183
|
frenchplotlib/
|
|
184
184
|
├── frenchplotlib/
|
|
185
185
|
│ ├── __init__.py
|
|
186
|
-
│ ├──
|
|
186
|
+
│ ├── tapisseries.py # Marqueurs personnalisés
|
|
187
187
|
│ └── dorures.py # Palettes de couleurs
|
|
188
188
|
├── main.py # Exemple d'utilisation
|
|
189
189
|
├── setup.py
|
|
@@ -2,9 +2,9 @@ README.md
|
|
|
2
2
|
pyproject.toml
|
|
3
3
|
setup.py
|
|
4
4
|
frenchplotlib/__init__.py
|
|
5
|
-
frenchplotlib/baguetteplot.py
|
|
6
5
|
frenchplotlib/converter.py
|
|
7
6
|
frenchplotlib/dorures.py
|
|
7
|
+
frenchplotlib/tapisseries.py
|
|
8
8
|
frenchplotlib.egg-info/PKG-INFO
|
|
9
9
|
frenchplotlib.egg-info/SOURCES.txt
|
|
10
10
|
frenchplotlib.egg-info/dependency_links.txt
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "frenchplotlib"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "1.0.0"
|
|
8
8
|
description = "French-themed matplotlib markers and colormaps"
|
|
9
9
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
10
10
|
requires-python = ">=3.6"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"""from .baguetteplot import baguette, pain_de_mie, croissant, pain_au_chocolat, boule, brioche, bretzel, fougasse, pita, vin, fromage, eclair, macaron, camembert, madeleine, religieuse, escargot
|
|
2
|
-
|
|
3
|
-
__all__ = ['baguette', 'pain_de_mie', 'croissant', 'pain_au_chocolat', 'boule', 'brioche', 'bretzel', 'fougasse', 'pita', 'vin', 'fromage', 'eclair', 'macaron', 'camembert', 'madeleine', 'religieuse', 'escargot']"""
|
|
4
|
-
|
|
5
|
-
from . import baguetteplot
|
|
6
|
-
from . import dorures
|
|
7
|
-
|
|
8
|
-
__all__ = ['baguetteplot', 'dorures']
|
|
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
|