You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue could alternatively be "Compiled Path API inconsistent between backends".
The issue here is that both of these methods on CustomMarker try to provide a copy of the custom marker's path scaled appropriately for the size of the marker. This relies on a call to CompiledPath.scale_ctm which is not available on all backends (eg. QPainter backend, celiagg backend) and in some cases (eg. QPainter) there doesn't look to be an easy way to provide that support.
As a result the call will fail.
In some cases add_path may still work in use because it is being used by passing in a GC instead of a path.
The text was updated successfully, but these errors were encountered:
That is, when you're modifying the implicit path in a GraphicsContext the current transformation matrix is absolutely relevant. But kiva.agg can't have nice things (#390) because it does path transformation too early.
I don't think this necessarily precludes AbstractMarker.add_to_path from scaling markers.
Right. I played around with this a bit in celiagg... I don't think it's actually possible to do this for the implicit path. We could possibly add it to CompiledPath, but even that might be too confusing.
Based on the intractability of #390 for kiva.agg, I see this as a design bug in kiva.agg. We should refactor AbstractMarker so that it works with backends which implement transformation correctly.
This issue could alternatively be "Compiled Path API inconsistent between backends".
The issue here is that both of these methods on
CustomMarker
try to provide a copy of the custom marker's path scaled appropriately for the size of the marker. This relies on a call toCompiledPath.scale_ctm
which is not available on all backends (eg. QPainter backend, celiagg backend) and in some cases (eg. QPainter) there doesn't look to be an easy way to provide that support.As a result the call will fail.
In some cases
add_path
may still work in use because it is being used by passing in a GC instead of a path.The text was updated successfully, but these errors were encountered: