-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAINT: fix marker size type mismatch error #859
Changes from 9 commits
95afa2e
3e71256
64865c9
ea1d2eb
8142ffc
d90fe94
eabdfeb
0c178d2
cf34625
fe2695d
fecfa0d
e03dbcd
579f4a0
a9f0455
0bd3be7
94c3b41
522f272
4f3c87b
56ac53d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
|
||
# Enthought library imports | ||
from enable.api import black_color_trait, ColorTrait, MarkerTrait | ||
from traits.api import Any, Bool, Callable, Enum, Float, Str | ||
from traits.api import Any, Array, Bool, Callable, Enum, Float, Int, Str, Union | ||
|
||
# local imports | ||
from chaco.base_1d_plot import Base1DPlot | ||
|
@@ -32,7 +32,9 @@ class ScatterPlot1D(Base1DPlot): | |
marker = MarkerTrait | ||
|
||
# The pixel size of the marker, not including the thickness of the outline. | ||
marker_size = Float(4.0) | ||
marker_size = Union(Float, Int, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I found that Float trait can accomodate int as well, just cahnged. |
||
Array(Float), Array(Int), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't how the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it, thanks! |
||
default_value=4.0) | ||
|
||
# The CompiledPath to use if **marker** is set to "custom". This attribute | ||
# must be a compiled path for the Kiva context onto which this plot will | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the correct usage and should fail. You would need to specify a data source for the size values which holds the sizes.