|
From: Benjamin R. <ben...@ou...> - 2014-09-10 18:33:57
|
Off the bat, all I can think of is to use figimage: http://matplotlib.org/api/pyplot_api.html?highlight=figimage#matplotlib.pyplot.figimage Of course, an issue is how to determine the location for the flags. Perhaps one could take advantage of each label object's position and transform that into figure coordinates. Or possibly with just simply imshow(), but specifying the extents determined from the label object's position. Cheers! Ben Root On Sat, Sep 6, 2014 at 9:34 PM, fizix137 <fiz...@gm...> wrote: > My full question is in stack overflow. Basically I want to add an image > of a > flag into each of the wedges of a pie chart. The wedges will never be > smaller than 1/8 of the pie so the flag should always fit nicely. > > I can't figure out how to get an image to be inside a wedge. That's what I > need help with. > > Thanks! > > > http://stackoverflow.com/questions/25596938/matplotlib-applying-an-image-as-the-background-of-a-matplotlib-wedge > > > > -- > View this message in context: > http://matplotlib.1069221.n5.nabble.com/Get-an-image-into-a-wedge-of-a-pie-chart-tp43899.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |