python - matplotlib radar plot min values -
i started matplotlib radar example values below min values disappear. have gist here.
the result looks like

as can see in gist, values d , e in series both 3 don't show @ all.
there scaling going on. in order find out problem started original values , removed 1 one.
when removed 1 whole series scale shrink. here example (removing factor 5) , scale in [0,0.2] range shrinks.
from
to

i don't care scaling values @ 3 score show up.
many thanks
actually, values d , e in series show up, although plotted in center of plot. because limits of "y-axis" autoscaled.
if want have fixed "minimum radius", can put ax.set_ylim(bottom=0) in for-loop.
if want minimum radius number relative lowest plotted value, can include ax.set_ylim(np.asarray(data.values()).flatten().min() - margin) in for-loop, margin distance lowest plotted value center of plot.
with fixed center @ radius 0 (added markers better show points plotted):

by setting margin = 1, , using relative y-limits, output:

Comments
Post a Comment