Changes outlined in bug https://sourceforge.net/p/autoplot/bugs/2175/ show that black and transparent black have the same representation in .vap files, and where vap strings are used to represent plots. For example, this script demos:
from org.autoplot.state import ColorSerializeDelegate
transparent= Color( 0,0,0,0 )
black= Color( 0,0,0 )
print 'transparent: ', ColorSerializeDelegate().format( transparent )
print 'black: ', ColorSerializeDelegate().format( black )
results in
transparent: #0
black: #0
I also notice that the ColorSerializeDelegate which does this has commented code which will use color names like "Black" to represent colors in vaps, instead of #0. This should be switched over as well.
See https://sourceforge.net/p/autoplot/bugs/2175/, which is the problem about storing color and size preferences.
I'm temporarily removing the background property from Plot until new code that fixes serialize/deserialize is fixed. This will probably be just a week, but I need to get a rev out without this problem.
I've verified that the serialized colors now properly represent 100% transparent. Also color names (like Black) are used in vap files as well.
Nope, now https://github.com/autoplot/dev/blob/master/bugs/sf/2200/demoSaveColors.vap no longer works, because the traces come up grey instead of transparent. Reopening...
This is fixed.