Comments (8)
Hey @rythorpe , can I take this issue, Can you confirm that we just need to check if ax
is not an instance of Axes3D
and then raise a TypeError
?
from hnn-core.
Yep, go for it @samadpls!
from hnn-core.
Fix is welcome !
from hnn-core.
I don't think there is a way to update an 2d axis to a 3d projection. https://stackoverflow.com/questions/35209489/can-i-turn-an-existing-ax-object-into-a-3d-projection
Maybe there should be a check on an axes argument and raises an error if it's not a Axes3D object?
from hnn-core.
I was thinking of removing the existing 2D axes and then adding new 3D axes, but this might mess with formatting if the user starts with a more detailed grid of subplots (maybe?). Your suggestion about adding a check for an Axes3D object is probably the easiest solution, however.
from hnn-core.
In that case I think the user would have to pass the grid/subplot/figure so you can index which one to replace. I don't think it's typical convention to pass the whole axes array to a plotting function.
from hnn-core.
I believe the figure as accessible via Axes.get_figure()
, but I generally agree that the simpler solution where we raise an error if the user attempts plotting on the wrong type of Axes object is the way to go.
from hnn-core.
as long as we catch the error before it becomes a cryptic traceback, I think it's fine
from hnn-core.
Related Issues (20)
- GUI: Creating figures with no data throws multiple exceptions
- hnn_widget.ipynb fails at cell 2 with list index out of range HOT 6
- GUI importing csv data files HOT 4
- API: network configurations I/O from hierarchical json
- Coverage not uploading to Codecov
- API: Change add_tonic_bias argument structure HOT 3
- API: Add name parameter to add_tonic_bias method
- qt issue hnn_core, also gui issue missing tabs HOT 1
- MPI timing out waiting for child process HOT 11
- GUI: Fix File Upload button height
- CI: GH Linux runner stalling on pytest
- Example Error like File not found error HOT 8
- GUI: L2 KeyError when running ERPYes100Trials.json HOT 2
- Monthly issue metrics report
- HNN core fails with Python 3.12 HOT 1
- Link check fails HOT 3
- [BUG] net.add_poisson_drive() throws error for cell_specific=True depending on rate_constant type
- create dockerhub action
- GUI - Load data first throws exception HOT 2
- GUI - Data to compare widget disabled after loading 2nd sim HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hnn-core.