plot2svg icon indicating copy to clipboard operation
plot2svg copied to clipboard

Legend and Bar in Matlab 2014b

Open owensnick opened this issue 10 years ago • 9 comments

Hello,

Two issues with plot2svg in Matlab 2014b using the new handle graphics.

  1. In the Matlab 2014b with legends are no longer axes and so are not supported by plot2svg. I had a look through the new legend object and a workaround is not immediately obvious. The new legend 'icons' are not Children of the legend object, despite having the legend as a parent. Any ideas for a workaround?
  2. The bar charts now have type 'bar' rather than 'hggroup' as before and so are not supported by plot2svg. There are a few workarounds possible, perhaps the most straightforward is to use barV6 which is still in the matlab code base.

Thanks,

Nick

owensnick avatar Jan 07 '15 12:01 owensnick

Same problem here...

nallroggen avatar Jun 25 '15 11:06 nallroggen

same here...

leshaker avatar Jan 04 '16 14:01 leshaker

same here. Very serious issue

averter avatar Jul 23 '16 21:07 averter

Same here, any solution? Comming from R2014a to R2016a.

ikoryakovskiy avatar Sep 13 '16 13:09 ikoryakovskiy

did anyone manage to solve this now?

sharahamo avatar Feb 02 '17 13:02 sharahamo

I basically gave up and started exporting my plots to svg directly from Matlab. Everything else that I've tried with plot2svg failed :-(.The other alternative would be to go back to Matlab previous to 2014. I sort of understand that is frustrating to keep changing code, because Mathworks decides to change figures objects properties. Regards

averter avatar Feb 02 '17 18:02 averter

The matlab function svg works fine until I need to import patches without changing the renderer to 'painters' (because then I need to import text as text, not vectors). So plot2svg is still needed here.

sharahamo avatar Feb 02 '17 18:02 sharahamo

Bars and Legends are implemented in my fork: https://github.com/kupiqu/plot2svg

Beware that my fork presents many edits wrt to this repo

kupiqu avatar Nov 29 '17 19:11 kupiqu

just wanted to let you know about the first release of fig2svg which fixes this issue:

https://github.com/kupiqu/fig2svg

kupiqu avatar Nov 26 '18 15:11 kupiqu