Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
374a7af3
Commit
374a7af3
authored
Dec 08, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automatically adjust X and Y axes.
parent
b1772107
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
erp5/util/benchmark/report.py
erp5/util/benchmark/report.py
+5
-3
No files found.
erp5/util/benchmark/report.py
View file @
374a7af3
...
...
@@ -257,6 +257,11 @@ def drawDecorator(xlabel, ylabel, with_table=False):
if
ylabel
:
axes
.
set_ylabel
(
ylabel
)
# Adjust X and Y axes automatically
if
not
with_table
:
axes
.
relim
()
axes
.
autoscale_view
(
True
,
True
,
True
)
pdf
.
savefig
()
pylab
.
close
()
...
...
@@ -454,7 +459,6 @@ def drawConcurrentUsersUseCasePlot(axes,
axes
.
plot
(
nb_users_list
,
use_case_per_hour_max_list
,
'gs-'
,
label
=
'Maximum'
)
axes
.
set_xticks
(
nb_users_list
)
pyplot
.
xlim
(
xmin
=
nb_users_list
[
0
],
xmax
=
nb_users_list
[
-
1
])
return
(
ticker
.
FixedLocator
(
nb_users_list
),
None
,
ticker
.
MaxNLocator
(
nbins
=
20
),
ticker
.
AutoMinorLocator
())
...
...
@@ -486,8 +490,6 @@ def drawConcurrentUsersPlot(axes, nb_users_list, stat_list, only_average=False):
axes
.
set_xticks
(
nb_users_list
)
pyplot
.
xlim
(
xmin
=
nb_users_list
[
0
],
xmax
=
nb_users_list
[
-
1
])
return
(
ticker
.
FixedLocator
(
nb_users_list
),
None
,
ticker
.
MaxNLocator
(
nbins
=
20
),
ticker
.
AutoMinorLocator
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment