I have a matplotlib plot that I had created earlier and had saved it as an image (let's call it fig-1). Now, I have a script which generates another plot and I want that plot to be overlayed on the previous image (fig-1).
Due to environment problems, both the plots can't be generated by a single script.
How should I proceed?
The first plot I am generating is in python3 and the second script I have to run is in python2. The two environments cannot be changed since one is running in ros2 and the second is running in ros1.
On pickling the first plot in python3 and then trying to unpickle it in python2, I am encountering the following error:
Traceback (most recent call last):
File "./latencycheckclient.py", line 58, in <module>
fig_handle = pl.load(file('/home/arusarka/dev_ws/src/devel_space/devel_space/ros2_latency.pickle','rb'))
File "/usr/lib/python2.7/pickle.py", line 1384, in load
return Unpickler(file).load()
File "/usr/lib/python2.7/pickle.py", line 864, in load
dispatch[key](self)
File "/usr/lib/python2.7/pickle.py", line 1223, in load_build
setstate(state)
File "/usr/lib/python2.7/dist-packages/matplotlib/transforms.py", line 1684, in __setstate__
self._init(state['child'])
KeyError: u'child'

