Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
scripts/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 = [
]
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
=
[]
ver_texts
=
[[
images
.
GridAnnotation
(
y
_label
(
y
))]
for
y
in
y
s
]
hor_texts
=
[[
images
.
GridAnnotation
(
x
_label
(
x
))]
for
x
in
x
s
]
ver_texts
=
[[
images
.
GridAnnotation
(
y
)]
for
y
in
y_label
s
]
hor_texts
=
[[
images
.
GridAnnotation
(
x
)]
for
x
in
x_label
s
]
first_pocessed
=
None
...
...
@@ -218,8 +218,8 @@ class Script(scripts.Script):
p
,
xs
=
xs
,
ys
=
ys
,
x_label
=
lambda
x
:
x_opt
.
format_value
(
p
,
x_opt
,
x
)
,
y_label
=
lambda
y
:
y_opt
.
format_value
(
p
,
y_opt
,
y
)
,
x_label
s
=
[
x_opt
.
format_value
(
p
,
x_opt
,
x
)
for
x
in
xs
]
,
y_label
s
=
[
y_opt
.
format_value
(
p
,
y_opt
,
y
)
for
y
in
ys
]
,
cell
=
cell
,
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