Matplotlib error when using MadAnalysis-5 with Python-3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadAnalysis 5 |
Fix Committed
|
Medium
|
Jack Y. Araz |
Bug Description
Hi,
I've recently started using MG5_aMC@NLO v3.1.0 for a project. I've installed MadAnalysis-5 using Python 3.7.5 through "install MadAnalysis5" command. This installs the code as expected.
However, when I generate events for a process and try to use MadAnalysis-5 to plot the histograms, they are never plotted, i.e. output PDF contain no plots. I've pin-pointed the source of error to Matplotlib; I'm using Matplotlib v3.3.3.
The error seems to be related to Polygon which is missing some properties. You can see it in the attached matplotlib.log file below.
Let me know if this is something that'll be fixed soon. For the moment, I'm able to generate plots with MadAnalysis-5 using Python v2.7.16.
Cheers.
Changed in madanalysis5: | |
status: | In Progress → Fix Committed |
Hi Ankit,
The fix will be merged later this week with the code (I am just too busy to do it right now). Please have a look to /code.launchpad .net/~ma5dev/ madanalysis5/ v1.9_py3/ +merge/ 400320 <https:/ /code.launchpad .net/~ma5dev/ madanalysis5/ v1.9_py3/ +merge/ 400320>
https:/
so that you can fix this issue locally, in the meantime.
Cheers,
Benjamin
> On 14 Apr 2021, at 19:05, Ankit Beniwal <email address hidden> wrote: /bugs.launchpad .net/bugs/ 1923877/ +attachment/ 5487879/ +files/ matplotlib. log /bugs.launchpad .net/bugs/ 1923877 /bugs.launchpad .net/madanalysi s5/+bug/ 1923877/ +subscriptions
>
> Public bug reported:
>
> Hi,
>
> I've recently started using MG5_aMC@NLO v3.1.0 for a project. I've
> installed MadAnalysis-5 using Python 3.7.5 through "install
> MadAnalysis5" command. This installs the code as expected.
>
> However, when I generate events for a process and try to use
> MadAnalysis-5 to plot the histograms, they are never plotted, i.e.
> output PDF contain no plots. I've pin-pointed the source of error to
> Matplotlib; I'm using Matplotlib v3.3.3.
>
> The error seems to be related to Polygon which is missing some
> properties. You can see it in the attached matplotlib.log file below.
>
> Let me know if this is something that'll be fixed soon. For the moment,
> I'm able to generate plots with MadAnalysis-5 using Python v2.7.16.
>
> Cheers.
>
> ** Affects: madanalysis5
> Importance: Undecided
> Status: New
>
> ** Attachment added: "matplotlib.log"
> https:/
>
> --
> You received this bug notification because you are a member of
> MadAnalysisTeam, which is subscribed to MadAnalysis 5.
> https:/
>
> Title:
> Matplotlib error when using MadAnalysis-5 with Python-3
>
> Status in MadAnalysis 5:
> New
>
> Bug description:
> Hi,
>
> I've recently started using MG5_aMC@NLO v3.1.0 for a project. I've
> installed MadAnalysis-5 using Python 3.7.5 through "install
> MadAnalysis5" command. This installs the code as expected.
>
> However, when I generate events for a process and try to use
> MadAnalysis-5 to plot the histograms, they are never plotted, i.e.
> output PDF contain no plots. I've pin-pointed the source of error to
> Matplotlib; I'm using Matplotlib v3.3.3.
>
> The error seems to be related to Polygon which is missing some
> properties. You can see it in the attached matplotlib.log file below.
>
> Let me know if this is something that'll be fixed soon. For the
> moment, I'm able to generate plots with MadAnalysis-5 using Python
> v2.7.16.
>
> Cheers.
>
> To manage notifications about this bug go to:
> https:/