Hello everyone,
I Have a problem. I have a graph inserted in a PyQt interface and I
want to clear it (When I click on a button).
I initialise the graph like that:
class Graph(FigureCanvas):
def __init__(self,parent):
self.fig = Figure()
self.ax = self.fig.add_subplot(111)
Hi all,
I would like to add different xtick labels on the top and
bottom of a figure. The number and position of the xticks
is the same.
How can I do that ?
An example would be appreciated.
Nils
--
Live Security Virtu
Dear Nils,
you can try to play with
i) ax.axis["right", "top", "bottom", "left"] and their methods (see
setup_axis3 here
http://matplotlib.sourceforge.net/examples/axes_grid/demo_floating_axes.html
for an example)
ii) twinx and twiny axes (example
http://matplotlib.sourceforge.net/examples/api/two
Dear Nils,
I think that I've found what you need (example adapted from
http://notes.brooks.nu/2008/03/plotting-on-left-and-right-axis-simulateously-using-matplotlib-and-numpy/
)
import matplotlib.pyplot as plt
import numpy as np
#data to plot
x = np.linspace(0,5,num=100)
y = np.sinc(x)
fig =
Dear matplotlibers,
I know almost nothing about mpl_toolkits (matplolib.__version__ = 1.1.0).
>From the help of
"mpl_toolkits.axisartist.floating_axes.FloatingSubplot", the init
function reads
__init__(self, fig, *args, **kwargs)
In the example here
(http://matplotlib.sourceforge.net/examples/axe
On Fri, Apr 27, 2012 at 10:11 AM, Francesco Montesano <
franz.berges...@googlemail.com> wrote:
> Dear matplotlibers,
>
> I know almost nothing about mpl_toolkits (matplolib.__version__ = 1.1.0).
> >From the help of
> "mpl_toolkits.axisartist.floating_axes.FloatingSubplot", the init
> function read
On Fri, Apr 13, 2012 at 4:24 PM, Ignas Anikevicius wrote:
> Dear all,
>
> I was wondering if it is possible to use matplotlib from C++ directly
> and I have found an example on how to do this on StackOverflow:
>
>
> http://stackoverflow.com/questions/2509156/anyone-knows-a-matplotlib-equivalent-in
> -Original Message-
> From: Ignas Anikevicius [mailto:anikevic...@gmail.com]
> Sent: Friday, April 13, 2012 4:25 PM
> To: matplotlib-users@lists.sourceforge.net
> Subject: [Matplotlib-users] Matplotlib and Cpp
>
> Dear all,
>
> I was wondering if it is possible to use matplotlib from C++
On Thu, Apr 26, 2012 at 12:51 PM, willfurnass wrote:
>
> I've converted a simple MATLAB script [1] for wavelet decomposition-based
> analysis to Python. I now want to create figures similar to [2] that
> feature five subplots in one column, with the 1st and 3rd being generated
> using 'subplo
On Thu, Apr 26, 2012 at 12:51 PM, willfurnass wrote:
>
> I've converted a simple MATLAB script [1] for wavelet decomposition-based
> analysis to Python. I now want to create figures similar to [2] that
> feature five subplots in one column, with the 1st and 3rd being generated
> using 'subplo
Hello:
Are there any restrictions or best practices for posting problems or
issues one has with matplotlib/pyplot? I ask, because one of the data sets
that demonstrates unexpected behavior in matplotlib is ~300k in size (I
can reduce it if necessary).
Tanim Islam
-
On Friday, April 27, 2012, tanim wrote:
> Hello:
>
> Are there any restrictions or best practices for posting problems or
> issues one has with matplotlib/pyplot? I ask, because one of the data sets
> that demonstrates unexpected behavior in matplotlib is ~300k in size (I
> can reduce it if necess
12 matches
Mail list logo