Here is a slightly revised version of your script.
It has a separate axes for labeling whose width is determined by the
maximum width of the labels (using MaxExtent from axes_grid toolkit).
Give it a try and see if it fits your needs.
Regards,
-JJ
import numpy as np
import matplotlib.pyplot as
Hi everyone
I've been going around matplotlib objects trying to find a way to
pre-calculate positions depending on input.
I'm trying to create a function that draws two barplots facing opposite
directions.
This is what I managed so far:
###
import numpy as np
import matplotlib.pyplot as plt
fr