Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyVis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julian Lenz
pyVis
Commits
47d35b51
Commit
47d35b51
authored
5 years ago
by
Julian Lenz
Browse files
Options
Downloads
Patches
Plain Diff
Minor bug fixes and additions.
parent
58dfaa45
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plotting.py
+2
-0
2 additions, 0 deletions
plotting.py
styling.py
+21
-2
21 additions, 2 deletions
styling.py
with
23 additions
and
2 deletions
plotting.py
+
2
−
0
View file @
47d35b51
...
...
@@ -792,6 +792,8 @@ class brokenAxis:
par
.
pop
(
'
uLim
'
,
None
)
return
brokenAxis
(
aLowTwin
,
aUpTwin
,
twinx
=
True
,
**
par
,
**
kwargs
)
def
heuristicRange
(
loc
,
lim
,
pos
):
raise
Exception
(
'
Not implemented yet!
'
)
def
alignTicks
(
a1
,
a2
,
whichTicks
=
'
major
'
,
whichAxis
=
'
y
'
,
ranges
=
'
flex
'
):
'''
...
...
This diff is collapsed.
Click to expand it.
styling.py
+
21
−
2
View file @
47d35b51
...
...
@@ -23,7 +23,7 @@ from .aux import iterTest
markers
=
[
'
o
'
,
'
s
'
,
'
^
'
,
'
v
'
,
'
D
'
,
'
p
'
]
colors
=
[
'
#1f77b4
'
,
'
#ff7f0e
'
,
'
#2ca02c
'
,
'
#d62728
'
,
'
#9467bd
'
,
'
#8c564b
'
,
'
#e377c2
'
,
'
#7f7f7f
'
,
'
#bcbd22
'
,
'
#17becf
'
]
linestyles
=
[
'
-
'
,
'
--
'
,
'
:
'
,
'
-.
'
,(
0
,
(
5
,
10
)),(
0
,
(
3
,
5
,
1
,
5
,
1
,
5
)),(
0
,
(
1
,
1
)),(
0
,
(
3
,
5
,
1
,
5
))]
linestyles
=
[
'
-
'
,
'
--
'
,
'
:
'
,
'
-.
'
,(
0
,
(
3
,
2
,
1
,
2
,
1
,
2
)),(
0
,
(
3
,
5
,
1
,
5
)),(
0
,
(
5
,
1
0
)),(
0
,
(
3
,
5
,
1
,
5
,
1
,
5
)),(
0
,
(
1
,
1
))]
Fig
=
[]
ax
=
[]
...
...
@@ -160,7 +160,8 @@ class FancyAxes(mpl.axes.Axes):
CAUTION: Probably, this does not have the full convenience functionality
of the original plot().
'''
if
len
(
args
)
==
0
:
return
None
# extract the new kwarg
withLines
=
kwargs
.
pop
(
'
withLines
'
,
True
)
if
isinstance
(
withLines
,
bool
):
...
...
@@ -249,6 +250,24 @@ class FancyAxes(mpl.axes.Axes):
def
cla
(
self
):
self
.
resetCyclers
()
super
().
cla
()
def
getNextStyle
(
self
,
which
=
'
errorbar
'
):
if
which
==
'
errorbar
'
:
return
{
'
linestyle
'
:
next
(
self
.
lCyclerErrorbar
),
'
marker
'
:
next
(
self
.
mCyclerErrorbar
),
'
color
'
:
next
(
self
.
cCyclerErrorbar
),
}
elif
which
==
'
plot
'
:
return
{
'
linestyle
'
:
next
(
self
.
lCyclerPlot
),
'
marker
'
:
next
(
self
.
mCyclerPlot
),
'
color
'
:
next
(
self
.
cCyclerPlot
),
}
else
:
raise
Exception
()
# register the new Axes subclass as projection in matplotlib such that it can
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment