diff --git a/phi/vis/_matplotlib/_matplotlib_plots.py b/phi/vis/_matplotlib/_matplotlib_plots.py index 0526dd96e..8479a8373 100644 --- a/phi/vis/_matplotlib/_matplotlib_plots.py +++ b/phi/vis/_matplotlib/_matplotlib_plots.py @@ -225,6 +225,8 @@ def plot(self, data: Field, figure, subplot, space: Box, min_val: float, max_val subplot.legend() # elif min_val is not None and max_val is not None: # subplot.set_ylim((min_val - .02 * (max_val - min_val), max_val + .02 * (max_val - min_val))) + if spatial(data).item_names[0]: # label x ticks + subplot.set_xticks(x, spatial(data).item_names[0]) class BarChart(Recipe):