Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
140f8931
Commit
140f8931
authored
Sep 17, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
process all values for x/y plot right away to error out if any are bad before any processing begins
parent
304222ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
xy_grid.py
scripts/xy_grid.py
+5
-5
No files found.
scripts/xy_grid.py
View file @
140f8931
...
@@ -90,11 +90,11 @@ axis_options = [
...
@@ -90,11 +90,11 @@ axis_options = [
]
]
def
draw_xy_grid
(
p
,
xs
,
ys
,
x_label
,
y_label
,
cell
,
draw_legend
):
def
draw_xy_grid
(
p
,
xs
,
ys
,
x_label
s
,
y_labels
,
cell
,
draw_legend
):
res
=
[]
res
=
[]
ver_texts
=
[[
images
.
GridAnnotation
(
y
_label
(
y
))]
for
y
in
y
s
]
ver_texts
=
[[
images
.
GridAnnotation
(
y
)]
for
y
in
y_label
s
]
hor_texts
=
[[
images
.
GridAnnotation
(
x
_label
(
x
))]
for
x
in
x
s
]
hor_texts
=
[[
images
.
GridAnnotation
(
x
)]
for
x
in
x_label
s
]
first_pocessed
=
None
first_pocessed
=
None
...
@@ -218,8 +218,8 @@ class Script(scripts.Script):
...
@@ -218,8 +218,8 @@ class Script(scripts.Script):
p
,
p
,
xs
=
xs
,
xs
=
xs
,
ys
=
ys
,
ys
=
ys
,
x_label
=
lambda
x
:
x_opt
.
format_value
(
p
,
x_opt
,
x
)
,
x_label
s
=
[
x_opt
.
format_value
(
p
,
x_opt
,
x
)
for
x
in
xs
]
,
y_label
=
lambda
y
:
y_opt
.
format_value
(
p
,
y_opt
,
y
)
,
y_label
s
=
[
y_opt
.
format_value
(
p
,
y_opt
,
y
)
for
y
in
ys
]
,
cell
=
cell
,
cell
=
cell
,
draw_legend
=
draw_legend
draw_legend
=
draw_legend
)
)
...
...
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