plutovizu
Des graphiques matplotlib élégants à partir de vos DataFrames pandas, en une seule chaîne d'appels.
Démarrage rapide
Installez plutovizu avec pip ou uv et tracez votre premier graphique en quelques minutes.
Galerie
121 graphiques : catalogue matplotlib, écologie, climat, sols, cartes (map), graphes et réseaux, diagrammes (Sankey, cordes, Venn, logigrammes, séquences), graphiques complexes (Pareto, carte de contrôle, Marimekko…) et tout seaborn. Chacun a sa fiche : usage, données attendues, paramètres.
Personnalisation
Palettes, dégradés, polices et styles pour adapter chaque graphique à votre charte.
Référence API
Toutes les méthodes de
Chart, leurs paramètres et des exemples d'usage.
Exemple
plutovizu encapsule matplotlib dans une API fluide orientée pandas DataFrame. Chaque méthode retourne self, ce qui permet d’enchaîner les appels sans variable intermédiaire.
from plutovizu import Chart
import pandas as pd
df = pd.DataFrame({'mois': list(range(1, 13)),
'ventes': [12, 15, 18, 22, 28, 35, 40, 38, 30, 25, 20, 16]})
(Chart(df, figsize=(10, 5))
.line('mois', 'ventes', marker='o')
.title('Ventes mensuelles')
.labels(xlabel='Mois', ylabel='Ventes (k€)')
.grid(alpha=0.3)
.tight_layout()
.show())Fonctionnalités
| Catégorie | Méthodes |
|---|---|
| Graphiques de base | line, bar, scatter, histogram, boxplot, pie, heatmap, area |
| Distributions | violin, ridgeline |
| Comparaisons | radar, parallel_coordinates, dumbbell, pyramid, bump, lollipop |
| Composition | waffle, treemap, circle_packing, donut, waterfall, streamgraph, radial_bar, progress_bar |
| Types matplotlib | step, stem, band, timeline, eventplot, errorbar, hist2d, bihistogram, confidence_ellipse, pivot_heatmap, polar |
| Champs & 3D | contour, mesh, vector_field, scatter3d, line3d, surface, bar3d |
| Volumétrique | hexbin |
| Planification | gantt, calendar_heatmap |
| Diagrammes | sankey, chord, venn, flowchart (logigrammes, organigrammes), sequence_diagram |
| Climat & sols | ombrothermic, walter_lieth, climogram, emberger, ecoclimatogram, water_balance, degree_days, wind_rose, anomaly, climate_stripes, soil_texture, soil_profile, depth_profile, soil_properties, retention_curve, grain_size_curve, exchange_complex, infiltration_curve, isopleth |
| Écologie | glm_curve, response_curve, count_distribution, forest_plot, ordination (AFC, CCA, ACP, RDA), rank_abundance, accumulation, diversity |
| Graphes & réseaux | network, arc_diagram, shortest_path, spanning_tree, max_flow, critical_path (PERT / CPM), tsp_route |
| Map | map_points, choropleth, flow_map, density_map, field_map, route_map ; éléments : north_arrow, scale_bar, inset_map |
| Sciences & analyse | regression, mean_bar (lettres de Tukey), interaction, qqplot, pca_biplot, dendrogram, ternary, soil_texture |
| Analyse qualitative | word_cloud, word_frequency, likert, code_matrix |
| Graphiques complexes | pareto, control_chart, marimekko, bland_altman, raincloud ; grilles seaborn relplot, displot, catplot, lmplot, jointplot, pairplot, clustermap |
| Seaborn | seaborn(...) pour tout seaborn, et kde, ecdf, strip, swarm, boxen, pointplot, countplot, residplot |
| Thèmes | editorial par défaut ; set_theme, theme_context, list_themes, get_theme — 36 thèmes : maison, seaborn et morethemes (voir la page) |
| Apparence | title, subtitle, caption, background, labels, grid, tick_format, font, set_legend, set_limits, rotate_labels, set_style, translate — voir Infographie |
| Couleurs | set_colors, create_custom_palette, generate_gradient_palette, preview_palette |
| Export | save, show, get_figure, tight_layout |
Principe de chaînage
# Toutes les méthodes retournent self — on peut tout enchaîner
(Chart(df)
.bar('categorie', 'valeur') # type de graphique
.set_colors('pastel') # palette
.title('Mon graphique') # titre
.labels(xlabel='Cat', ylabel='Val')
.grid()
.set_legend()
.rotate_labels(x_rotation=45)
.tight_layout()
.save('out.png') # enregistre ET retourne self
.show()) # terminal — retourne None