Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvements to gangoffour and gofplot #695

Merged
merged 2 commits into from
Jun 20, 2022
Merged

improvements to gangoffour and gofplot #695

merged 2 commits into from
Jun 20, 2022

Conversation

baggepinnen
Copy link
Member

Now works for MIMO systems etc.

@JuliaControlBot
Copy link

Something failed when generating plots. See the log at https://github.com/JuliaControl/ControlExamplePlots.jl/actions/runs/2526977438?check_suite_focus=true for more details.

Comment on lines +773 to +775
plots_id = Base.PkgId(UUID("91a5bcdd-55d7-5caf-9e0b-520d859cae80"), "Plots")
haskey(Base.loaded_modules, plots_id) || error("Call using Plots before calling this function")
Plots = Base.loaded_modules[plots_id]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice way to solve the implicit dependency. Just thought that one other nice thing with recipes is that they could technically work with more backends, e.g. Makie, IIUC. Maybe not the main focus for us, so I don't think it should hinder this PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nvm, just tried and seems Makie does not play with the recipes we have so I guess they have their own recipe system? I was pretty sure I had tried this before and it worked, seems like a miss if they aren't cross compatible with the recipes :/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makie did have some very basic support for Plots recipes a long time ago, but it got stale and never updated.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If makie did work with Plots recipes, I'd probably use Makie way more often. Now, there's just too much invested in Plots recipes to bother making the change :P

@codecov
Copy link

codecov bot commented Jun 20, 2022

Codecov Report

Merging #695 (05d4283) into master (4b2cdda) will increase coverage by 0.06%.
The diff coverage is 90.90%.

@@            Coverage Diff             @@
##           master     #695      +/-   ##
==========================================
+ Coverage   87.51%   87.58%   +0.06%     
==========================================
  Files          35       35              
  Lines        3597     3601       +4     
==========================================
+ Hits         3148     3154       +6     
+ Misses        449      447       -2     
Impacted Files Coverage Δ
src/ControlSystems.jl 100.00% <ø> (ø)
src/pid_design.jl 78.61% <ø> (ø)
src/analysis.jl 89.29% <66.66%> (+0.84%) ⬆️
src/plotting.jl 86.77% <94.73%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b2cdda...05d4283. Read the comment docs.

@baggepinnen baggepinnen merged commit 7509564 into master Jun 20, 2022
@baggepinnen baggepinnen deleted the bettergof branch June 20, 2022 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants