Skip to content

Expose zoom kwarg in plotting functions #2100

@PProfizi

Description

@PProfizi
          Hi PProfizi, I'm here to provide feedback again. I'm sorry I didn't finish all the related issues at once. The new issue is that when using the DpfPlotter class for plotting, "parallel_projection=True" will fail. So I moved the code you wrote to the vicinity of the "zoom" code mentioned last time, and the modified code is as follows:

Code 1
image

Code 2
image

Code 3
image

It should be noted that the code snippet for "parallel_projection" must come before "zoom", otherwise "zoom" will not work

After my testing, "parallel_projection" and "zoom" can all work in the following three plotting methods:

  1. Class Model, function metadata.meshed_region.plot();
  2. Class DpfPlotter, function show_figure();
  3. Class Plotter, function plot_contour().

Originally posted by @ZanePC in #1535 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions