Repository navigation
PlotShape without a display starts with v, as with one - #3954
Merged
ramcdougal merged 1 commit intoNov 15, 2026
Merged
Conversation
A ShapePlot (with a display) starts with v. A ShapePlotData (no display) had no variable until variable() was called, so nrn_get_plotshape_varname returned "" and ps.plot(pyplot) or ps.plot(plotly) did not color the shape by v. The PlotShape docs say the default variable is v. Fixes neuronsimulator#3951.
|
ramcdougal
approved these changes
Nov 15, 2026
ramcdougal
enabled auto-merge (squash)
November 15, 2026 03:03
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3954 +/- ##
=======================================
Coverage 68.68% 68.68%
=======================================
Files 716 716
Lines 115559 115560 +1
=======================================
+ Hits 79369 79372 +3
+ Misses 36190 36188 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Fixes #3951.
A
PlotShapewithout a display (ShapePlotData) had no variable untilvariable()was called, while one with a display (ShapePlot) starts withv, which is also what the PlotShape docs say. Sonrn_get_plotshape_varnamegave"", andps.plot(pyplot)orps.plot(plotly)without a display didn't color the shape by v.ShapePlotDatanow starts withv, looked up the same way as inShapePlotImpl(hoc_table_lookup("v", hoc_built_in_symlist)).So a no-display
ps.plot(...)withoutvariable()is now colored by v, as with a display. For a defaultPlotShape(False),get_plotshape_datagives('', None, -80.0, 40.0)on 9.1.0.dev46 and('v', None, -80.0, 40.0)with this, the same as afterps.variable("v").test/api/plotshape_interface.cppnow checks the default name too. It fails without the change ("FAIL: default varname") and passes with it.