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
[Plot] Remove the workbench, leave the module #4971
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This compiles, runs, and the unit tests pass (except the three FEM tests that have been failing for a while). Tested on Windows 10:
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.25505 +3 (Git)
Build type: Release
Branch: pr/4971
Hash: b2910f1
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)
Will that strategy not be confusing? There is now a minimal Plot module still in the FreeCAD core source code, and a more complete one available as an addon... Maybe users will be confused? How will they know they need to install the addon? |
They don't need to install the addon, that's the whole point. Herein we only have the module, i.e. the core component which allows every other module/workbench make plots, which already have the minimum matplotlib tools (see https://user-images.githubusercontent.com/1828501/123444869-a81ba100-d5d7-11eb-9bf3-8169108bf484.png). The external addon is just providing a workbench to play with the plot styling. It is also offering a little bit more complete saving tool. For backward compatibility the addon is still deploying the Plot module, but it will be removed in the future (see FreeCAD/freecad.plot#16)
I consider this acceptable. However, I still prefer importing Plot with
rather than
It is up to you guys P.S. It should be highlighted that there is not any names collision between the module provided here (accessed as |
Do the CFDoF folks know about this proposed change? |
Thanks for the heads up! Good to know.
This would be great from the CfdOF point of view :) |
I was testing this with CfdOF and just had one issue - it was a recurrence of a previous issue I had on my system that was fixed in the plot workbench. I have submitted a pull request on top of this branch to apply the same fix here (sanguinariojoe#1). Other than that it is working great for me. |
Prevent matplotlib selecting the PyQt API instead of PySide2
Merged! |
Okay then, indeed normal users will simply not see anything about Plot and install the WB if needed. But developers might still be confused. But OK, let's merge this and see how it goes. But let's keep an eye for confusion in people's minds, and think of a strategy if needed |
Where is the Plot code located? inside PartDesign/WizardShaft? |
Upstream has dropped the ship and plot workbenches recently. The patch reflects these changes and drops the USE flags for it. Note, that the plot module is still available, only the workbench for separate working with plots has been removed. See also FreeCAD/FreeCAD#4971 and FreeCAD/FreeCAD#4900 Bug: https://bugs.gentoo.org/858308#c2 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
Upstream has dropped the ship and plot workbenches recently. The patch reflects these changes and drops the USE flags for it. Note, that the plot module is still available, only the workbench for separate working with plots has been removed. See also FreeCAD/FreeCAD#4971 and FreeCAD/FreeCAD#4900 Also fixes some typos in pkg_postinst and minor code cleanup. Bug: https://bugs.gentoo.org/858308#c2 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
Upstream has dropped the ship and plot workbenches recently. The patch reflects these changes and drops the USE flags for it. Note, that the plot module is still available, only the workbench for separate working with plots has been removed. See also FreeCAD/FreeCAD#4971 and FreeCAD/FreeCAD#4900 Bug: https://bugs.gentoo.org/858308#c2 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
Upstream has dropped the ship and plot workbenches recently. The patch reflects these changes and drops the USE flags for it. Note, that the plot module is still available, only the workbench for separate working with plots has been removed. See also FreeCAD/FreeCAD#4971 and FreeCAD/FreeCAD#4900 Also fixes some typos in pkg_postinst and minor code cleanup. Bug: https://bugs.gentoo.org/858308#c2 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
Upstream has dropped the ship and plot workbenches recently. The patch reflects these changes and drops the USE flags for it. Note, that the plot module is still available, only the workbench for separate working with plots has been removed. See also FreeCAD/FreeCAD#4971 and FreeCAD/FreeCAD#4900 Bug: https://bugs.gentoo.org/858308#c2 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
Upstream has dropped the ship and plot workbenches recently. The patch reflects these changes and drops the USE flags for it. Note, that the plot module is still available, only the workbench for separate working with plots has been removed. See also FreeCAD/FreeCAD#4971 and FreeCAD/FreeCAD#4900 Also fixes some typos in pkg_postinst and minor code cleanup. Bug: https://bugs.gentoo.org/858308#c2 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
Upstream has dropped the ship and plot workbenches recently. The patch reflects these changes and drops the USE flags for it. Note, that the plot module is still available, only the workbench for separate working with plots has been removed. See also FreeCAD/FreeCAD#4971 and FreeCAD/FreeCAD#4900 Also fixes some typos in pkg_postinst and minor code cleanup. Bug: https://bugs.gentoo.org/858308#c2 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Closes: #26597 Signed-off-by: Sam James <sam@gentoo.org>
Thank you for creating a pull request to contribute to FreeCAD! To ease integration, we ask you to conform to the following items. Pull requests which don't satisfy all the items below might be rejected. If you are in doubt with any of the items below, don't hesitate to ask for help in the FreeCAD forum!
App
,Base
,Gui
or one of theMod
subfolders. If you need to make changes in several locations, make several pull requests and wait for the first one to be merged before submitting the next onesgit pull --rebase upstream master
./bin/FreeCAD --run-test 0
Fixes typo in Draft Move command text
Draft: Fixed typos
issue #<id>
orfixes #<id>
where<id>
is the FreeCAD bug tracker issue number in case a particular commit solves or is related to an existing issue on the tracker. Ex:Draft: fix typos - fixes #0004805
And please remember to update the Wiki with the features added or changed once this PR is merged.
Note: If you don't have wiki access, then please mention your contribution on the 0.20 Changelog Forum Thread.
Following the plan discussed in #4890 (comment), I am removing the plot workbench shipped within the core (which was utterly broken and disabled), letting just the module (
from FreeCAD.Plot import Plot
)The module is quite simple, requiring very little maintenance. Besides matplotlib is automatically providing handful tools to make some basic operations with the plot (Zoom, Save, ...). For more complex operations we still offer the Plot addon (https://github.com/FreeCAD/freecad.plot)
3 tests failed, but again they seem to be unrelated with this PR: