-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
force facecolor to be an array, NOT a list #554
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
Conversation
@theengineear @choldgraf I'm trying to see if the tests fail because of a difference in np.array/list facecolor. I just got a test failure but I think it was for something unrelated, so I'm rebuilding... |
Okay, a success it looks like. Shall we merge @theengineear ? |
Sure! 💃 Not sure how efficient the |
It was there before iirc. |
Hey all - thanks for being on top of this! I've got a couple deadlines this/next week and heading out of the country today, so I'm a little slow on the uptake right now. As a general rule, I think we can treat 1-D arrays almost exactly like lists, with the exception of some methods that lists have that arrays don't (most notably, Thanks a bunch of pushing this through! |
@choldgraf sounds good. I know that we didn't originally want to require @chriddyp am I off here? I'm guessing we're still against EDIT: For example, we can't pull color functions that use |
really? what's the reason for not having dependency on numpy? in the space of data analysis it's pretty much the only standard way to represent numerical data in memory. Do you have users that want to do data viz in python, but that don't use numpy? I think that not using numpy (or a package similar to it) does encourage poor efficiency. E.g., the improvements I initially made to trisurf were just wrapping things in numpy arrays and then doing the same calculations with those, and it was like 2 orders of magnitude improvement in speed. It's probably not a big deal if your users only ever have tiny amounts of data, but for anything non-trivial in size I think you get big benefits. |
I think it was mostly a slippery slope concept. If you let one big package be a dep, then another, then another... pretty soon it might take a loong time to get a new user to install plotly and get up and running. I'm assuming the APIs for interacting with a list and an array are basically the same. I wonder if we could just use a custom I'm, at once, in support of no strictly unnecessary deps and efficiency. I feel like with a little extra thought, we might be able to manage both? |
hey all - sorry for the slow response. I'm trying to get a bunch of work done before a trip to Vietnam next week (!!!!). re: slippery slope, I totally agree that this is a good mentality to have. At the same time I feel like at this point But either way, I do understand the mentality :) |
!!! Hope it's amazing! OK, lemme give it a thought. |
Sounds good - it might be worth talking to somebody like @fperez for advice on dependencies w/ the scientific python stack. He usually has good insights about this sort of thing. |
Testing if Python 2 and Python 3 are in agreement between the
facecolor
numpy.arrays