Python Forum
How to set which sides are axes in 3d plot?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to set which sides are axes in 3d plot?
#1
Hi, how to please set the opposite sides as axes (back)? Thank you

import matplotlib as mpl

from mpl_toolkits.mplot3d import Axes3D

import numpy as np

import matplotlib.pyplot as plt

mpl.rcParams['legend.fontsize'] = 10

fig = plt.figure()

ax = fig.gca(projection='3d')

theta = np.linspace(-4 * np.pi, 4 * np.pi, 100)

z = np.linspace(-2, 2, 100)

r = z**2 + 1

x = r * np.sin(theta)

y = r * np.cos(theta)

ax.plot(x, y, z, label='parametric curve')

ax.legend()

plt.show()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiple user defined plots with secondary axes using for loop maltp 1 1,442 Apr-30-2022, 10:19 AM
Last Post: maltp
  plotting 3d axes estera 0 1,791 Nov-26-2021, 11:36 AM
Last Post: estera
  How to plot intraday data of several days in one plot mistermister 3 2,903 Dec-15-2020, 07:43 PM
Last Post: deanhystad
  axes.spines jaisale1 0 1,451 Aug-30-2019, 02:28 AM
Last Post: jaisale1
  How to plot vertically stacked plot with same x-axis and SriMekala 0 1,918 Jun-12-2019, 03:31 PM
Last Post: SriMekala
  plotting 2 different set of data in a single plot with shared axes. upasana 4 3,657 Mar-21-2018, 01:43 PM
Last Post: upasana
  plot points in loglog axes Tibas 0 2,240 Mar-06-2018, 06:56 PM
Last Post: Tibas
  Importing - KeyError: u'axes.prop_cycle is not a valid rc parameter. GMPE 1 5,992 Feb-12-2018, 12:28 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020