isochrones/starmodel_old.py
def triangle_plots(self, basename=None, format='png',
                       **kwargs):
        """Returns two triangle plots, one with physical params, one observational

        :param basename:
            If basename is provided, then plots will be saved as
            "[basename]_physical.[format]" and "[basename]_observed.[format]"

        :param format:
            Format in which to save figures (e.g., 'png' or 'pdf')

        :param **kwargs:
            Additional keyword arguments passed to :func:`StarModel.triangle`
            and :func:`StarModel.prop_triangle`

        :return:
             * Physical parameters triangle plot (mass, radius, Teff, feh, age, distance)
             * Observed properties triangle plot.
             
        """
        if self.fit_for_distance:
            fig1 = self.triangle(plot_datapoints=False,
                                 params=['mass','radius','Teff','logg','feh','age',
                                         'distance','AV'],
                                 **kwargs)
        else:
            fig1 = self.triangle(plot_datapoints=False,
                                 params=['mass','radius','Teff','feh','age'],
                                 **kwargs)
            

        if basename is not None:
            plt.savefig('{}_physical.{}'.format(basename,format))
            plt.close()
        fig2 = self.prop_triangle(**kwargs)
        if basename is not None:
            plt.savefig('{}_observed.{}'.format(basename,format))
            plt.close()
        return fig1, fig2
Returns two triangle plots, one with physical params, one observational

        :param basename:
            If basename is provided, then plots will be saved as
            "[basename]_physical.[format]" and "[basename]_observed.[format]"

        :param format:
            Format in which to save figures (e.g., 'png' or 'pdf')

        :param **kwargs:
            Additional keyword arguments passed to :func:`StarModel.triangle`
            and :func:`StarModel.prop_triangle`

        :return:
             * Physical parameters triangle plot (mass, radius, Teff, feh, age, distance)
             * Observed properties triangle plot.
             
        
Returns two triangle plots, one with physical params, one observational
Returns two triangle plots one with physical params one observational
def triangle_plots(self, basename=None, format='png',
                       **kwargs):
        if self.fit_for_distance:
            fig1 = self.triangle(plot_datapoints=False,
                                 params=['mass','radius','Teff','logg','feh','age',
                                         'distance','AV'],
                                 **kwargs)
        else:
            fig1 = self.triangle(plot_datapoints=False,
                                 params=['mass','radius','Teff','feh','age'],
                                 **kwargs)
        if basename is not None:
            plt.savefig('{}_physical.{}'.format(basename,format))
            plt.close()
        fig2 = self.prop_triangle(**kwargs)
        if basename is not None:
            plt.savefig('{}_observed.{}'.format(basename,format))
            plt.close()
        return fig1, fig2
def triangle_plots ( self , basename = None , format = 'png' , ** kwargs ) : if self . fit_for_distance : fig1 = self . triangle ( plot_datapoints = False , params = [ 'mass' , 'radius' , 'Teff' , 'logg' , 'feh' , 'age' , 'distance' , 'AV' ] , ** kwargs ) else : fig1 = self . triangle ( plot_datapoints = False , params = [ 'mass' , 'radius' , 'Teff' , 'feh' , 'age' ] , ** kwargs ) if basename is not None : plt . savefig ( '{}_physical.{}' . format ( basename , format ) ) plt . close ( ) fig2 = self . prop_triangle ( ** kwargs ) if basename is not None : plt . savefig ( '{}_observed.{}' . format ( basename , format ) ) plt . close ( ) return fig1 , fig2
Returns two triangle plots, one with physical params, one observational
Returns two triangle plots one with physical params one observational
"""Returns two triangle plots, one with physical params, one observational

        :param basename:
            If basename is provided, then plots will be saved as
            "[basename]_physical.[format]" and "[basename]_observed.[format]"

        :param format:
            Format in which to save figures (e.g., 'png' or 'pdf')

        :param **kwargs:
            Additional keyword arguments passed to :func:`StarModel.triangle`
            and :func:`StarModel.prop_triangle`

        :return:
             * Physical parameters triangle plot (mass, radius, Teff, feh, age, distance)
             * Observed properties triangle plot.
             
        """
Physical parameters triangle plot (mass, radius, Teff, feh, age, distance)
Observed properties triangle plot.
Physical parameters triangle plot ( mass radius Teff feh age distance ) Observed properties triangle plot .
self
basename
If basename is provided, then plots will be saved as
"[basename]_physical.[format]" and "[basename]_observed.[format]"
If basename is provided then plots will be saved as " [ basename ] _physical . [ format ] " and " [ basename ] _observed . [ format ] "
format
Format in which to save figures
Format in which to save figures
**kwargs
Additional keyword arguments passed to :func:`StarModel.triangle`
and :func:`StarModel.prop_triangle`
Additional keyword arguments passed to : func : ` StarModel . triangle ` and : func : ` StarModel . prop_triangle `