IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Interfaces Graphiques Discussion :

Plot, Axis, etc.


Sujet :

Interfaces Graphiques

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    20
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2006
    Messages : 20
    Points : 15
    Points
    15
    Par défaut Plot, Axis, etc.
    Bonjour,
    je pense que je ne comprends pas bien le fonctionnement de plot/axis et des handle de Matlab.
    j'ai réalisé une interface avec GUIDE (cette interface s'appelle "fftScopeGUI". Dans le script principal, j'écris ceci :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    fftScopeHDL = fftScopeGUI;
    % timeGraph un Axis de mon interface
    timePlot = findobj(fftScopeHDL,'Tag','timeGraph'); 
      t=[0:0.001:15];
      y = sin(2*pi*t) + sin(4*pi*t);
      plot(timePlot ,t,y)
    Ca, ca marche. En revanche :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    fftScopeHDL = fftScopeGUI;
    % timeGraph un Axis de mon interface
    timePlot = findobj(fftScopeHDL,'Tag','timeGraph'); 
      t=[0:0.001:15];
      y = sin(2*pi*t) + sin(4*pi*t);
      axis(timePlot)
      plot(t,y)
    m'ouvre une nouvelle fenêtre pour le plot ? Or a ce que j'ai lu dans la documentation Matlab, "axis" avec un handle entre parenthèses sélectionne le axis correspondant comme "axis courant", et plot dessine dans le axis courant ... Où est-ce que je me trompe ?
    Merci !

  2. #2
    Membre éclairé Avatar de tubaas
    Homme Profil pro
    Acousticien
    Inscrit en
    Août 2009
    Messages
    641
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Acousticien
    Secteur : Industrie

    Informations forums :
    Inscription : Août 2009
    Messages : 641
    Points : 825
    Points
    825
    Par défaut
    axes(h) makes existing axes h the current axes and brings the figure containing it into focus. It also makes h the first axes listed in the figure's Children property and sets the figure's CurrentAxes property to h. The current axes is the target for functions that draw image, line, patch, rectangle, surface, and text graphics objects.
    axes avec un e, je ne trouve pas dans la doc axis(h)

Discussions similaires

  1. x axis de box plot
    Par thecrazydonut dans le forum MATLAB
    Réponses: 0
    Dernier message: 24/03/2015, 00h53
  2. Réponses: 5
    Dernier message: 07/06/2010, 11h18
  3. plot.axis sous C# ?
    Par coolworld dans le forum C#
    Réponses: 1
    Dernier message: 16/03/2007, 11h45
  4. Documentation gratuite sur l'API Windows, COM, DCOM, OLE, etc.
    Par Community Management dans le forum Windows
    Réponses: 1
    Dernier message: 16/11/2006, 15h28
  5. [Choix] SGDB pour Entreprise : coût, efficacité, etc.
    Par grassat dans le forum Décisions SGBD
    Réponses: 4
    Dernier message: 15/06/2002, 08h52

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo