NTBkOTM0NzY2NzRiMTQ2YmYyNTBiZmM1YjAwMThkMWY3YTZkYjUxNTc0OTYzZjY2NDg1YmVkYzI4MDEzNzJlZg.msfhczwc.eyJ1cmwiOiIvcGwvY291cnNlX2luc3RhbmNlLzIvaW5zdGFuY2VfcXVlc3Rpb24vMTgxLyIsImF1dGhuX3VzZXJfaWQiOiIxIn0
Skip to main content Accessibility guide
PrairieLearn Go home
  • XC 101, SectionA
  • Assessments
  • Gradebook
  • C4
Load from disk
  • Dev User student
    View type
    ✓ Staff view staff ✓ Student view student ✓ Student view without access restrictions student
    Effective user
    Customize…
    Course Requests Settings Log out

Regenerate assessment instance

Warning: Regenerating the assessment instance will select a new set of questions from this assessment. Any progress on the current assessment instance will be lost.

Are you sure you want to regenerate the assessment instance?

Course staff: Regenerate your assessment instance to pick up changes to the assessment or to get a fresh set of questions.

C4.32. Element pl-figure: Display a statically or dynamically generated image

The examples below showcase different features of pl-figure. The goal of this element is to display statically and dynamically generated images.

Part 1

Here is an example of of a static figure. By default, pl-figure will read static files from the clientFilesQuestion directory or from clientFilesCourse directory if overridden using the directory attribute. Depending on the display size of the window, the size of the displayed figure will automatically adjust to fit within the window.

Graph of a sine wave
Part 2

Here is an example of a fixed width figure. The width of the displayed figure can be set using the width attribute; the size of the figure will automatically shrink if the the specified width is too big for the display window.

Graph of a sine wave
Part 3

Here is an example of a dynamic figure. The contents of a dynamic image can be generated using the file() function inside server.py when the attribute type="dynamic" is set in the element tag.

Graph of 1*cos(x) function
Part 4

Here is an example of inline figures.


Select Slider set to true instead of Slider set to false from below.


Use display="inline" to embed a figure inline with the rest of the elements, like texts.

Additional attempts available with new variants

Correct answer

Collection 4

Assessment overview
Total points: 0/360
Score:
0%

Question C4.32

Value: 2
All variants: Open (current)
Total points: — /10
Auto-graded question

This form is only for reporting errors in the question itself. Do not use this form if you just don't know how to answer the question.

Previous question Next question

 Personal Notes

No attached notes

Attached files will be saved here for your reference. These files act as personal notes and can be used for your own review purposes. They are not used for grading.

Max file size: 10 MB

Attached personal notes will be saved here for your reference. These notes can be used for your own review purposes. They are not used for grading.

Staff information

Student details

Dev User
dev@example.com

Question

QID:
element/figure
Title:
Element pl-figure: Display a statically or dynamically generated image

Variant

Started at:
2026-08-04 16:37:51 (CDT)
Duration:
0s
Show/Hide answer
{
  "booleans": {
    "key": "a",
    "html": "Select this: <pl-figure file-name=\"true.png\" display=\"inline\" alt=\"Slider set to true\"></pl-figure>",
    "score": 1,
    "feedback": null
  }
}

Assessment instance

Assessment:
gallery/elements
Started at:
2026-08-04 16:37:17 (CDT)
Duration:
0s
View log
This box is not visible to students.