From: Denis L. <dla...@gm...> - 2010-06-01 21:50:17
|
Hi, Is there a way to change (and maybe remove) the background color (gray by default) of axis in mplot3d graphics ? Thanks, Denis |
From: Benjamin R. <ben...@ou...> - 2010-06-01 21:57:47
|
Denis, There are probably other ways, but the one that I know off the top of my head is done at the savefig() function. If you want to remove the background entirely, you can specify the keyword argument transparent=True. You can change the color using the facecolor keyword argument. You can specify any color in that argument like you would elsewhere in matplotlib. Ben Root On Tue, Jun 1, 2010 at 4:42 PM, Denis Laxalde <dla...@gm...> wrote: > Hi, > > Is there a way to change (and maybe remove) the background color (gray > by default) of axis in mplot3d graphics ? > > Thanks, > > Denis > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Denis L. <dla...@gm...> - 2010-06-01 22:28:36
|
Hi Ben, Thanks for your answer. Actually, options for savefig seem to only operate on 2D axes whereas I'm trying to change the color of 3D axes (x,y,z) which, by default, have a grid with a gray background. I manage to remove the grid lines but not the background color. (My initial question was not very clear perhaps...) Denis Le mardi 01 juin 2010 à 16:57 -0500, Benjamin Root a écrit : > Denis, > > There are probably other ways, but the one that I know off the top of my > head is done at the savefig() function. If you want to remove the > background entirely, you can specify the keyword argument transparent=True. > You can change the color using the facecolor keyword argument. You can > specify any color in that argument like you would elsewhere in matplotlib. > > Ben Root > > On Tue, Jun 1, 2010 at 4:42 PM, Denis Laxalde <dla...@gm...> wrote: > > > Hi, > > > > Is there a way to change (and maybe remove) the background color (gray > > by default) of axis in mplot3d graphics ? > > > > Thanks, > > > > Denis > > |
From: Benjamin R. <ben...@ou...> - 2010-06-02 02:34:29
|
Huh, how about that? I never noticed that before. I wonder if that is a bug or if it is intentional? Ben Root On Tue, Jun 1, 2010 at 5:28 PM, Denis Laxalde <dla...@gm...> wrote: > Hi Ben, > > Thanks for your answer. > Actually, options for savefig seem to only operate on 2D axes whereas > I'm trying to change the color of 3D axes (x,y,z) which, by default, > have a grid with a gray background. > I manage to remove the grid lines but not the background color. > (My initial question was not very clear perhaps...) > > Denis > > > Le mardi 01 juin 2010 à 16:57 -0500, Benjamin Root a écrit : > > Denis, > > > > There are probably other ways, but the one that I know off the top of my > > head is done at the savefig() function. If you want to remove the > > background entirely, you can specify the keyword argument > transparent=True. > > You can change the color using the facecolor keyword argument. You can > > specify any color in that argument like you would elsewhere in > matplotlib. > > > > Ben Root > > > > On Tue, Jun 1, 2010 at 4:42 PM, Denis Laxalde <dla...@gm...> > wrote: > > > > > Hi, > > > > > > Is there a way to change (and maybe remove) the background color (gray > > > by default) of axis in mplot3d graphics ? > > > > > > Thanks, > > > > > > Denis > > > > |
From: Howard S. <hs...@nv...> - 2010-06-01 23:05:47
|
Sorry for the newbie question, how do you plot one x with multiple ys. In below data, x column is followed by 5 y columns: Many thanks! Howard 2 1.0000e+00 6.6232e-02 9.9392e-03 2.2992e-02 3.8111e-07 3 6.3664e-01 1.0269e-01 7.9107e-03 1.8254e-02 1.1391e-07 4 2.7590e-01 4.9783e-02 6.2644e-03 1.0943e-02 5.8480e-08 5 1.6550e-01 2.3269e-02 4.7482e-03 8.4312e-03 5.8239e-08 6 1.1590e-01 1.7234e-02 3.8567e-03 8.7010e-03 4.5506e-08 7 7.4337e-02 1.1662e-02 3.3756e-03 8.0889e-03 4.0900e-08 8 5.7775e-02 1.0917e-02 2.8980e-03 6.9654e-03 3.7520e-08 9 4.7310e-02 1.1869e-02 2.5929e-03 5.8326e-03 3.4745e-08 10 3.9591e-02 1.1301e-02 2.4691e-03 5.2749e-03 3.2126e-08 11 3.6517e-02 1.0755e-02 2.3121e-03 4.8631e-03 3.7942e-08 12 3.2872e-02 9.8306e-03 2.1692e-03 4.6281e-03 3.2358e-08 13 3.1235e-02 9.1704e-03 2.0419e-03 4.3928e-03 3.1479e-08 14 2.9528e-02 8.6926e-03 1.9364e-03 4.1360e-03 3.5639e-08 15 2.7895e-02 8.3080e-03 1.8475e-03 3.9015e-03 3.0486e-08 16 2.6440e-02 7.9610e-03 1.7776e-03 3.6790e-03 3.0307e-08 17 2.5259e-02 7.6345e-03 1.6984e-03 3.4743e-03 3.1805e-08 18 2.4064e-02 7.3267e-03 1.6341e-03 3.2848e-03 3.0188e-08 19 2.3171e-02 7.0284e-03 1.5821e-03 3.1098e-03 2.7565e-08 20 2.2317e-02 6.7322e-03 1.5247e-03 2.9475e-03 2.7009e-08 ----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ----------------------------------------------------------------------------------- |
From: Alan G I. <ala...@gm...> - 2010-06-01 23:36:00
|
On 6/1/2010 7:05 PM, Howard Sun wrote: > Sorry for the newbie question, how do you plot one x with multiple ys. In below data, x column is followed by 5 y columns > Matplotlib has excellent documentation: http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.plot hth, Alan Isaac |
From: Angus M. <am...@gm...> - 2010-06-01 23:38:41
|
On 1 June 2010 19:05, Howard Sun <hs...@nv...> wrote: > Sorry for the newbie question, how do you plot one x with multiple ys. In > below data, x column is followed by 5 y columns: > Many thanks! > You can make an x vector and a y array, so that the first dimension of y is the same length as x: import numpy as np import matplotlib.pyplot as plt x = np.arange(2,21) y = np.random.random(size=(19,5)) + np.arange(5)[None,:] plt.plot(x,y) Angus. -- AJC McMorland Post-doctoral research fellow Neurobiology, University of Pittsburgh |
From: Benjamin R. <ben...@ou...> - 2010-06-02 00:48:01
|
Howard, Are you trying to plot 4 lines with the same y-axis or with two or more y-axes? I only ask because the values of your 5th column are many orders of magnitude smaller than the values of the other ys. If you want multiple y-axes on the same plot, then you might want to look at Parasite Axes. If not, then you can very simply plot this like so (assuming that 'data' is a 2-D numpy array). import matplotlib.pyplot as plt plt.plot(data[:, 0], data[:, 1]) plt.plot(data[:, 0], data[:, 2]) plt.plot(data[:, 0], data[:, 3]) plt.plot(data[:, 0], data[:, 4]) plt.show() I am sure that my 4 plot statements can be simplified, but I can't verify that right now. I hope that helps. Ben Root On Tue, Jun 1, 2010 at 6:05 PM, Howard Sun <hs...@nv...> wrote: > Sorry for the newbie question, how do you plot one x with multiple ys. In > below data, x column is followed by 5 y columns: > Many thanks! > Howard > > 2 1.0000e+00 6.6232e-02 9.9392e-03 2.2992e-02 3.8111e-07 > 3 6.3664e-01 1.0269e-01 7.9107e-03 1.8254e-02 1.1391e-07 > 4 2.7590e-01 4.9783e-02 6.2644e-03 1.0943e-02 5.8480e-08 > 5 1.6550e-01 2.3269e-02 4.7482e-03 8.4312e-03 5.8239e-08 > 6 1.1590e-01 1.7234e-02 3.8567e-03 8.7010e-03 4.5506e-08 > 7 7.4337e-02 1.1662e-02 3.3756e-03 8.0889e-03 4.0900e-08 > 8 5.7775e-02 1.0917e-02 2.8980e-03 6.9654e-03 3.7520e-08 > 9 4.7310e-02 1.1869e-02 2.5929e-03 5.8326e-03 3.4745e-08 > 10 3.9591e-02 1.1301e-02 2.4691e-03 5.2749e-03 3.2126e-08 > 11 3.6517e-02 1.0755e-02 2.3121e-03 4.8631e-03 3.7942e-08 > 12 3.2872e-02 9.8306e-03 2.1692e-03 4.6281e-03 3.2358e-08 > 13 3.1235e-02 9.1704e-03 2.0419e-03 4.3928e-03 3.1479e-08 > 14 2.9528e-02 8.6926e-03 1.9364e-03 4.1360e-03 3.5639e-08 > 15 2.7895e-02 8.3080e-03 1.8475e-03 3.9015e-03 3.0486e-08 > 16 2.6440e-02 7.9610e-03 1.7776e-03 3.6790e-03 3.0307e-08 > 17 2.5259e-02 7.6345e-03 1.6984e-03 3.4743e-03 3.1805e-08 > 18 2.4064e-02 7.3267e-03 1.6341e-03 3.2848e-03 3.0188e-08 > 19 2.3171e-02 7.0284e-03 1.5821e-03 3.1098e-03 2.7565e-08 > 20 2.2317e-02 6.7322e-03 1.5247e-03 2.9475e-03 2.7009e-08 > > > ----------------------------------------------------------------------------------- > This email message is for the sole use of the intended recipient(s) and may > contain > confidential information. Any unauthorized review, use, disclosure or > distribution > is prohibited. If you are not the intended recipient, please contact the > sender by > reply email and destroy all copies of the original message. > > ----------------------------------------------------------------------------------- > > ------------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Malte D. <mal...@we...> - 2010-06-01 23:48:01
|
Howard Sun <hs...@nv...> > Sorry for the newbie question, how do you plot one x with multiple ys. In > below data, x column is followed by 5 y columns: Many thanks! > Howard > > 2 1.0000e+00 6.6232e-02 9.9392e-03 2.2992e-02 3.8111e-07 > 3 6.3664e-01 1.0269e-01 7.9107e-03 1.8254e-02 1.1391e-07 > 4 2.7590e-01 4.9783e-02 6.2644e-03 1.0943e-02 5.8480e-08 > 5 1.6550e-01 2.3269e-02 4.7482e-03 8.4312e-03 5.8239e-08 > 6 1.1590e-01 1.7234e-02 3.8567e-03 8.7010e-03 4.5506e-08 > 7 7.4337e-02 1.1662e-02 3.3756e-03 8.0889e-03 4.0900e-08 > 8 5.7775e-02 1.0917e-02 2.8980e-03 6.9654e-03 3.7520e-08 > 9 4.7310e-02 1.1869e-02 2.5929e-03 5.8326e-03 3.4745e-08 > 10 3.9591e-02 1.1301e-02 2.4691e-03 5.2749e-03 3.2126e-08 > 11 3.6517e-02 1.0755e-02 2.3121e-03 4.8631e-03 3.7942e-08 > 12 3.2872e-02 9.8306e-03 2.1692e-03 4.6281e-03 3.2358e-08 > 13 3.1235e-02 9.1704e-03 2.0419e-03 4.3928e-03 3.1479e-08 > 14 2.9528e-02 8.6926e-03 1.9364e-03 4.1360e-03 3.5639e-08 > 15 2.7895e-02 8.3080e-03 1.8475e-03 3.9015e-03 3.0486e-08 > 16 2.6440e-02 7.9610e-03 1.7776e-03 3.6790e-03 3.0307e-08 > 17 2.5259e-02 7.6345e-03 1.6984e-03 3.4743e-03 3.1805e-08 > 18 2.4064e-02 7.3267e-03 1.6341e-03 3.2848e-03 3.0188e-08 > 19 2.3171e-02 7.0284e-03 1.5821e-03 3.1098e-03 2.7565e-08 > 20 2.2317e-02 6.7322e-03 1.5247e-03 2.9475e-03 2.7009e-08 First, you take the data apart, like in: import csv, numpy # let's call your array "filecopy" d = csv.Sniffer().sniff(filecopy[0]) for this_one_line in csv.reader(filecopy, d): header = this_one_line break data = numpy.zeros((len(header), len(filecopy))) for line in csv.reader(filecopy[1:], d): for n in range(len(header)): data[n][linecounter] = float(line[n]) linecounter += 1 And then, you plot it: from matplotlib import pyplot fig = pyplot.figure() s = fig.add_subplot(1, 1, 1) for c in data: s.plot(data[0], c) pyplot.show() Obviously, that's all taken from another script and won't work "as is" and there might be functions which would make some of this easier. The main reason for posting this is being that bad that someone couldn't take the pain and post something better - and me learning in the process. Sincerely, Malte |
From: Eric F. <ef...@ha...> - 2010-06-02 02:07:28
|
On 06/01/2010 02:47 PM, Benjamin Root wrote: > Howard, > > Are you trying to plot 4 lines with the same y-axis or with two or more > y-axes? I only ask because the values of your 5th column are many > orders of magnitude smaller than the values of the other ys. > > If you want multiple y-axes on the same plot, then you might want to > look at Parasite Axes. If not, then you can very simply plot this like > so (assuming that 'data' is a 2-D numpy array). > > import matplotlib.pyplot as plt > > plt.plot(data[:, 0], data[:, 1]) > plt.plot(data[:, 0], data[:, 2]) > plt.plot(data[:, 0], data[:, 3]) > plt.plot(data[:, 0], data[:, 4]) > > plt.show() > > I am sure that my 4 plot statements can be simplified, but I can't > verify that right now. import numpy as np import matplotlib.pyplot as plt x = np.arange(2, 5, 0.3) y = np.random.randn(len(x), 4) # dummy data for illustration plt.plot(x, y) So with the data array as above, it would be plt.plot(data[:,0], data[:, 1:]) Eric > > I hope that helps. > > Ben Root |
From: Howard S. <hs...@nv...> - 2010-06-02 15:30:53
|
Thanks alot, Alan, Angus, Ben, Eric and Malte, for the tips and the varieties. Matplotlib is awesome! Howard Sun, Ph.D. NVIDIA CORP. 2701 San Tomas Expressway Santa Clara, CA 95050 T (408) 566-5036 F (408) 486-8207 -----Original Message----- From: Eric Firing [mailto:ef...@ha...] Sent: Tuesday, June 01, 2010 7:07 PM To: mat...@li... Subject: Re: [Matplotlib-users] multiple lines On 06/01/2010 02:47 PM, Benjamin Root wrote: > Howard, > > Are you trying to plot 4 lines with the same y-axis or with two or more > y-axes? I only ask because the values of your 5th column are many > orders of magnitude smaller than the values of the other ys. > > If you want multiple y-axes on the same plot, then you might want to > look at Parasite Axes. If not, then you can very simply plot this like > so (assuming that 'data' is a 2-D numpy array). > > import matplotlib.pyplot as plt > > plt.plot(data[:, 0], data[:, 1]) > plt.plot(data[:, 0], data[:, 2]) > plt.plot(data[:, 0], data[:, 3]) > plt.plot(data[:, 0], data[:, 4]) > > plt.show() > > I am sure that my 4 plot statements can be simplified, but I can't > verify that right now. import numpy as np import matplotlib.pyplot as plt x = np.arange(2, 5, 0.3) y = np.random.randn(len(x), 4) # dummy data for illustration plt.plot(x, y) So with the data array as above, it would be plt.plot(data[:,0], data[:, 1:]) Eric > > I hope that helps. > > Ben Root ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users ----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ----------------------------------------------------------------------------------- |
From: Benjamin R. <ben...@ou...> - 2010-06-02 02:24:44
|
Malte, You may want to look into Numpy's genfromtxt() or loadtxt() functions. They will make your life so much easier for loading data from a text file. Ben Root On Tue, Jun 1, 2010 at 6:47 PM, Malte Dik <mal...@we...> wrote: > Howard Sun <hs...@nv...> > > Sorry for the newbie question, how do you plot one x with multiple ys. In > > below data, x column is followed by 5 y columns: Many thanks! > > Howard > > > > 2 1.0000e+00 6.6232e-02 9.9392e-03 2.2992e-02 3.8111e-07 > > 3 6.3664e-01 1.0269e-01 7.9107e-03 1.8254e-02 1.1391e-07 > > 4 2.7590e-01 4.9783e-02 6.2644e-03 1.0943e-02 5.8480e-08 > > 5 1.6550e-01 2.3269e-02 4.7482e-03 8.4312e-03 5.8239e-08 > > 6 1.1590e-01 1.7234e-02 3.8567e-03 8.7010e-03 4.5506e-08 > > 7 7.4337e-02 1.1662e-02 3.3756e-03 8.0889e-03 4.0900e-08 > > 8 5.7775e-02 1.0917e-02 2.8980e-03 6.9654e-03 3.7520e-08 > > 9 4.7310e-02 1.1869e-02 2.5929e-03 5.8326e-03 3.4745e-08 > > 10 3.9591e-02 1.1301e-02 2.4691e-03 5.2749e-03 3.2126e-08 > > 11 3.6517e-02 1.0755e-02 2.3121e-03 4.8631e-03 3.7942e-08 > > 12 3.2872e-02 9.8306e-03 2.1692e-03 4.6281e-03 3.2358e-08 > > 13 3.1235e-02 9.1704e-03 2.0419e-03 4.3928e-03 3.1479e-08 > > 14 2.9528e-02 8.6926e-03 1.9364e-03 4.1360e-03 3.5639e-08 > > 15 2.7895e-02 8.3080e-03 1.8475e-03 3.9015e-03 3.0486e-08 > > 16 2.6440e-02 7.9610e-03 1.7776e-03 3.6790e-03 3.0307e-08 > > 17 2.5259e-02 7.6345e-03 1.6984e-03 3.4743e-03 3.1805e-08 > > 18 2.4064e-02 7.3267e-03 1.6341e-03 3.2848e-03 3.0188e-08 > > 19 2.3171e-02 7.0284e-03 1.5821e-03 3.1098e-03 2.7565e-08 > > 20 2.2317e-02 6.7322e-03 1.5247e-03 2.9475e-03 2.7009e-08 > > > First, you take the data apart, like in: > > import csv, numpy > > # let's call your array "filecopy" > > d = csv.Sniffer().sniff(filecopy[0]) > > for this_one_line in csv.reader(filecopy, d): > header = this_one_line > break > > data = numpy.zeros((len(header), len(filecopy))) > > for line in csv.reader(filecopy[1:], d): > for n in range(len(header)): > data[n][linecounter] = float(line[n]) > linecounter += 1 > > |
From: Denis L. <dla...@gm...> - 2010-06-02 14:42:54
|
This is set in axis3d module (class Axis), by _AXINFO. So far, I haven't found a way to modify colors/transparency but to edit the latter file. Is this hard-coded or is there a way to modify this a posteriori ? Cheers, Denis Le 02-06-2010, Benjamin Root <ben...@ou...> a écrit : > Huh, how about that? I never noticed that before. I wonder if that > is a bug or if it is intentional? > > Ben Root > > On Tue, Jun 1, 2010 at 5:28 PM, Denis Laxalde > <dla...@gm...> wrote: > >> Hi Ben, >> >> Thanks for your answer. Actually, options for savefig seem to only >> operate on 2D axes whereas I'm trying to change the color of 3D axes >> (x,y,z) which, by default, have a grid with a gray background. I >> manage to remove the grid lines but not the background color. (My >> initial question was not very clear perhaps...) >> >> Denis >> >> >> Le mardi 01 juin 2010 =E0 16:57 -0500, Benjamin Root a =E9crit : >> > Denis, >> > >> > There are probably other ways, but the one that I know off the top >> > of m= > y >> > head is done at the savefig() function. If you want to remove the >> > background entirely, you can specify the keyword argument >> transparent=3DTrue. >> > You can change the color using the facecolor keyword argument. You >> > can specify any color in that argument like you would elsewhere in >> matplotlib. >> > >> > Ben Root >> > >> > On Tue, Jun 1, 2010 at 4:42 PM, Denis Laxalde >> > <dla...@gm...> >> wrote: >> > >> > > Hi, >> > > >> > > Is there a way to change (and maybe remove) the background color >> > > (gra= > y >> > > by default) of axis in mplot3d graphics ? >> > > >> > > Thanks, >> > > >> > > Denis >> > > >> |
From: Jae-Joon L. <lee...@gm...> - 2010-06-02 15:53:35
|
On Wed, Jun 2, 2010 at 10:42 AM, Denis Laxalde <dla...@gm...> wrote: > This is set in axis3d module (class Axis), by _AXINFO. > So far, I haven't found a way to modify colors/transparency but to edit > the latter file. Is this hard-coded or is there a way to modify this a > posteriori ? > > Cheers, > > Denis > You can simply modify that dictionary. To have different colors for different axes, define _AXINFO in the instance level as below. from mpl_toolkits.mplot3d import axes3d, axis3d import matplotlib.pyplot as plt import numpy as np fig = plt.figure() ax = axes3d.Axes3D(fig) myAXINFO = { 'x': {'i': 0, 'tickdir': 1, 'juggled': (1, 0, 2), 'color': (0.55, 0.95, 0.95, 0.5, 0.2)}, 'y': {'i': 1, 'tickdir': 0, 'juggled': (0, 1, 2), 'color': (0.50, 0.90, 0.90, 0.5, 0.8)}, 'z': {'i': 2, 'tickdir': 0, 'juggled': (0, 2, 1), 'color': (0.525, 0.925, 0.925, 0.5, 0.5)}, } ax.w_xaxis._AXINFO = myAXINFO ax.w_yaxis._AXINFO = myAXINFO ax.w_zaxis._AXINFO = myAXINFO # to change the global behavior # axis3d.Axis._AXINFO.update(myAXINFO) plt.show() |
From: Eric F. <ef...@ha...> - 2010-06-02 16:54:21
|
On 06/02/2010 05:53 AM, Jae-Joon Lee wrote: > On Wed, Jun 2, 2010 at 10:42 AM, Denis Laxalde<dla...@gm...> wrote: >> This is set in axis3d module (class Axis), by _AXINFO. >> So far, I haven't found a way to modify colors/transparency but to edit >> the latter file. Is this hard-coded or is there a way to modify this a >> posteriori ? >> >> Cheers, >> >> Denis >> > > You can simply modify that dictionary. ...with the caution that you are modifying a private implementation-dependent variable, so your code is more likely to break with future versions of mplot3d, and with no deprecation or other warning, than if you could stick to methods and attributes without the leading underscore. Eric > To have different colors for different axes, define _AXINFO in the > instance level as below. > > > from mpl_toolkits.mplot3d import axes3d, axis3d > import matplotlib.pyplot as plt > import numpy as np > > > fig = plt.figure() > ax = axes3d.Axes3D(fig) > > myAXINFO = { > 'x': {'i': 0, 'tickdir': 1, 'juggled': (1, 0, 2), > 'color': (0.55, 0.95, 0.95, 0.5, 0.2)}, > 'y': {'i': 1, 'tickdir': 0, 'juggled': (0, 1, 2), > 'color': (0.50, 0.90, 0.90, 0.5, 0.8)}, > 'z': {'i': 2, 'tickdir': 0, 'juggled': (0, 2, 1), > 'color': (0.525, 0.925, 0.925, 0.5, 0.5)}, > } > > > ax.w_xaxis._AXINFO = myAXINFO > ax.w_yaxis._AXINFO = myAXINFO > ax.w_zaxis._AXINFO = myAXINFO > > # to change the global behavior > # axis3d.Axis._AXINFO.update(myAXINFO) > > plt.show() > > ------------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Denis L. <dla...@gm...> - 2010-06-02 18:46:30
|
On Wed, 02 Jun 2010 06:54:11 -1000, Eric Firing wrote: > On 06/02/2010 05:53 AM, Jae-Joon Lee wrote: >> On Wed, Jun 2, 2010 at 10:42 AM, Denis Laxalde wrote: >>> This is set in axis3d module (class Axis), by _AXINFO. >>> So far, I haven't found a way to modify colors/transparency but to edit >>> the latter file. Is this hard-coded or is there a way to modify this a >>> posteriori ? >> >> You can simply modify that dictionary. > > > ...with the caution that you are modifying a private > implementation-dependent variable, so your code is more likely to break > with future versions of mplot3d, and with no deprecation or other > warning, than if you could stick to methods and attributes without the > leading underscore. That would indeed be a better approach. Can somebody points me to the particular methods/attributes to look at ? Thanks in advance, Denis |
From: Jae-Joon L. <lee...@gm...> - 2010-06-03 15:42:11
|
On Wed, Jun 2, 2010 at 2:46 PM, Denis Laxalde <dla...@gm...> wrote: > That would indeed be a better approach. Can somebody points me to the > particular methods/attributes to look at ? > As far as I can see, there is no public methods/attributes. Can you file a bug so that Reinier (or others) can pick this up later? https://sourceforge.net/tracker/?group_id=80706&atid=560720 -JJ |
From: Denis L. <dla...@gm...> - 2010-06-04 18:25:46
|
Le jeudi 03 juin 2010 à 11:41 -0400, Jae-Joon Lee a écrit : > On Wed, Jun 2, 2010 at 2:46 PM, Denis Laxalde <dla...@gm...> wrote: > > That would indeed be a better approach. Can somebody points me to the > > particular methods/attributes to look at ? > > > > As far as I can see, there is no public methods/attributes. > Can you file a bug so that Reinier (or others) can pick this up later? Done: https://sourceforge.net/tracker/?func=detail&atid=560723&aid=3011616&group_id=80706 Cheers, Denis |