Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install from pip: ValueError: Unknown projection '3d'

See original GitHub issue

pyfdax KeyError: ‘V_NMG’ [ INFO] [pyfda.pyfda_rc:187] Using ‘DejaVu Sans’ font. [ INFO] [pyfda.libs.tree_builder:256] Parsing config file ‘/home/user/.pyfda/pyfda.conf’ with sections: [Common] [Input Widgets] [Plot Widgets] [Filter Widgets] [Fixpoint Widgets]

[ INFO] [pyfda.libs.tree_builder:310] Found 3 entries in [Common] [ INFO] [pyfda.libs.tree_builder:336] No valid user directory specified. [ INFO] [pyfda.libs.tree_builder:594] Found 5 classes in [Input Widgets]: pyfda.input_widgets.input_specs.Input_Specs pyfda.input_widgets.input_coeffs.Input_Coeffs pyfda.input_widgets.input_pz.Input_PZ pyfda.input_widgets.input_info.Input_Info pyfda.input_widgets.input_fixpoint_specs.Input_Fixpoint_Specs

[ INFO] [pyfda.libs.tree_builder:594] Found 6 classes in [Plot Widgets]: pyfda.plot_widgets.plot_hf.Plot_Hf pyfda.plot_widgets.plot_phi.Plot_Phi pyfda.plot_widgets.plot_tau_g.Plot_tau_g pyfda.plot_widgets.plot_pz.Plot_PZ pyfda.plot_widgets.plot_impz.Plot_Impz pyfda.plot_widgets.plot_3d.Plot_3D

[ INFO] [pyfda.libs.tree_builder:594] Found 10 classes in [Filter Widgets]: pyfda.filter_widgets.bessel.Bessel pyfda.filter_widgets.butter.Butter pyfda.filter_widgets.cheby1.Cheby1 pyfda.filter_widgets.cheby2.Cheby2 pyfda.filter_widgets.ellip.Ellip pyfda.filter_widgets.equiripple.Equiripple pyfda.filter_widgets.firwin.Firwin pyfda.filter_widgets.manual.Manual_FIR pyfda.filter_widgets.manual.Manual_IIR

[ INFO] [pyfda.libs.tree_builder:594] Found 1 classes in [Fixpoint Widgets]: pyfda.fixpoint_widgets.fir_df.fir_df_pyfixp_ui.FIR_DF_pyfixp_UI

[ INFO] [pyfda.input_widgets.input_specs:322] Start filter design using method ‘Cheby1.LPman’ [ INFO] [pyfda.input_widgets.input_specs:358] Designed filter with order = 10 [WARNING] [pyfda.input_widgets.input_fixpoint_specs:86] No fixpoint filter found for this type of filter! [ INFO] [pyfda.plot_widgets.plot_impz:576] [0.1348 ms]: Calculated transient response [ INFO] [pyfda.plot_widgets.plot_impz:582] [122.9 ms]: Plotted transient response Traceback (most recent call last): File “/usr/lib/python3/dist-packages/matplotlib/projections/”, line 58, in get_projection_class return projection_registry.get_projection_class(projection) File “/usr/lib/python3/dist-packages/matplotlib/projections/”, line 25, in get_projection_class return self._all_projection_types[name] KeyError: ‘3d’

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “/home/user/.local/bin//pyfdax”, line 8, in <module> sys.exit(main()) File “/home/user/.local/lib/python3.8/site-packages/pyfda/”, line 294, in main mainw = pyFDA() File “/home/user/.local/lib/python3.8/site-packages/pyfda/”, line 143, in init self._construct_UI() File “/home/user/.local/lib/python3.8/site-packages/pyfda/”, line 156, in _construct_UI pltTabWidgets = plot_tab_widgets.PlotTabWidgets(self) # plot widgets File “/home/user/.local/lib/python3.8/site-packages/pyfda/plot_widgets/”, line 36, in init self._construct_UI() File “/home/user/.local/lib/python3.8/site-packages/pyfda/plot_widgets/”, line 74, in _construct_UI inst = wdg_class() File “/home/user/.local/lib/python3.8/site-packages/pyfda/plot_widgets/”, line 69, in init self._construct_UI() File “/home/user/.local/lib/python3.8/site-packages/pyfda/plot_widgets/”, line 220, in _construct_UI self._init_grid() # initialize grid and do initial plot File “/home/user/.local/lib/python3.8/site-packages/pyfda/plot_widgets/”, line 302, in _init_grid self.draw() # initial plot File “/home/user/.local/lib/python3.8/site-packages/pyfda/plot_widgets/”, line 398, in draw self.draw_3d() File “/home/user/.local/lib/python3.8/site-packages/pyfda/plot_widgets/”, line 405, in draw_3d self.init_axes() File “/home/user/.local/lib/python3.8/site-packages/pyfda/plot_widgets/”, line 316, in init_axes self.ax3d = self.mplwidget.fig.add_subplot(111, projection=‘3d’) File “/usr/lib/python3/dist-packages/matplotlib/”, line 1396, in add_subplot self._process_projection_requirements(*args, **kwargs) File “/usr/lib/python3/dist-packages/matplotlib/”, line 1120, in _process_projection_requirements projection_class = projections.get_projection_class(projection) File “/usr/lib/python3/dist-packages/matplotlib/projections/”, line 60, in get_projection_class raise ValueError(“Unknown projection %r” % projection) ValueError: Unknown projection ‘3d’

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

chipmuenkcommented, Jan 16, 2022

I can reproduce the crash with matplotlib 3.1.2. Upgrading to 3.2.2 helps indeed, but I’ll also fix the root cause which is a missing

from mpl_toolkits.mplot3d import Axes3D .

It seems this import is no longer required for newer matplotlib versions.

(see also

hansfbaiercommented, Jan 16, 2022

Many thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueError: Unknown projection '3d' (once again)
You will have to import Axes3D to enable the 3d plotting in matplotlib. ... #your code fig = plt.figure() ax = fig.gca(projection='3d').
Read more >
Matplotlib Unknown Projection '3d' - Python Guides
In this tutorial, we will discuss the value error "matplotlib unknown projection '3d' in python". Here we'll cover the reason and solution ...
Read more >
ValueError: Unknown projection '3d' - AI Pool
ValueError : Unknown projection '3d'. I'm using matplotlib and want to plot 3D points, but I get an error like this
Read more >
3D graphing messed up ("Unknown projection '3d'") #3 - GitHub
The 3D graphing changes (in 6fb6814) don't seem to work for me. Instead of a graph, I get this: Traceback (most recent call...
Read more >
Matplotlib: "Unknown projection '3d'" error - DevPress - CSDN
Answer a question. I just installed matplotlib and am trying to run one of there example scripts. However I run into the error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found