Esempio n. 1
0
def gauge_locations(current_data, gaugenos='all'):
    gaugetools.plot_gauge_locations(current_data.plotdata,
                                    gaugenos=gaugenos,
                                    format_string='kx',
                                    add_labels=True,
                                    xoffset=0.02,
                                    yoffset=0.02)
Esempio n. 2
0
 def addgauges(current_data):
     from clawpack.visclaw import gaugetools
     gaugetools.plot_gauge_locations(current_data.plotdata, \
          gaugenos=[702,901,911], \
          #gaugenos=[702,901,902,911,912], \
          markersize=2, fontsize=10, xoffset=-0.02, yoffset=-0.04, \
          format_string='ko', add_labels=True)
Esempio n. 3
0
    def add_particles(current_data):
        t = current_data.t

        # plot recent path:
        t_path_length = 0.5  # length of path trailing particle
        kwargs_plot_path = {'linewidth': 1, 'color': 'k'}
        particle_tools.plot_paths(gauge_solutions,
                                  t1=t - t_path_length,
                                  t2=t,
                                  gaugenos=gaugenos_lagrangian,
                                  kwargs_plot=kwargs_plot_path)

        # plot current location:
        kwargs_plot_point = {'marker': 'o', 'markersize': 3, 'color': 'k'}
        particle_tools.plot_particles(gauge_solutions,
                                      t,
                                      gaugenos=gaugenos_lagrangian,
                                      kwargs_plot=kwargs_plot_point)

        # plot any stationary gauges:
        gaugetools.plot_gauge_locations(current_data.plotdata, \
             gaugenos=gaugenos_stationary, format_string='kx', add_labels=False)
        kwargs = {'loc': 'upper left'}
        legend_tools.add_legend(['Lagrangian particle', 'Stationary gauge'],
                                linestyles=['', ''],
                                markers=['o', 'x'],
                                loc='lower right',
                                framealpha=0.5,
                                fontsize=10)
Esempio n. 4
0
 def gauge_location_afteraxes(cd):
     plt.subplots_adjust(left=0.12, bottom=0.06, right=0.97, top=0.97)
     surge_afteraxes(cd)
     gaugetools.plot_gauge_locations(cd.plotdata,
                                     gaugenos='all',
                                     format_string='ko',
                                     add_labels=True)
Esempio n. 5
0
def gauge_locations(current_data,gaugenos='all'):
    plt.hold(True)
    gaugetools.plot_gauge_locations(current_data.plotdata, \
                                    gaugenos=gaugenos, format_string='kx', 
                                    add_labels=True, xoffset=0.02, yoffset=0.02)
    plt.hold(False)
Esempio n. 6
0
def addgauges(current_data):
    gaugetools.plot_gauge_locations(current_data.plotdata, \
         gaugenos='all', format_string='ko', add_labels=True)
Esempio n. 7
0

        
Esempio n. 8
0
 def addgauges(current_data):
     from clawpack.visclaw import gaugetools
     gaugenos = range(101, 110)  # on diagonal
     gaugetools.plot_gauge_locations(current_data.plotdata, \
          gaugenos=gaugenos, format_string='ko', add_labels=True)
Esempio n. 9
0
 def gauge_locations(current_data, gaugenos='all'):
     plt.hold(True)
     gaugetools.plot_gauge_locations(current_data.plotdata, \
          gaugenos=gaugenos, format_string='kx', add_labels=True)
     plt.hold(False)
Esempio n. 10
0
 def addgauges(current_data):
     from clawpack.visclaw import gaugetools
     gaugetools.plot_gauge_locations(current_data.plotdata, \
          gaugenos='all', format_string='ko', add_labels=True)
Esempio n. 11
0
 def locations_afteraxes(current_data, gaugenos='all'):
     gaugetools.plot_gauge_locations(current_data.plotdata,
                                     gaugenos=gaugenos,
                                     format_string='kx',
                                     add_labels=True)
     pcolor_afteraxes(current_data)
Esempio n. 12
0
 def addgauges(current_data):
     gaugetools.plot_gauge_locations(current_data.plotdata, \
          gaugenos=[21401, 21413, 21418, 21419], format_string='ko', add_labels=True)
Esempio n. 13
0
 def addgauges(current_data):
     gaugetools.plot_gauge_locations(current_data.plotdata, gaugenos="all", format_string="ko", add_labels=True)
Esempio n. 14
0
 def gauge_locations(current_data, gaugenos="all"):
     plt.hold(True)
     gaugetools.plot_gauge_locations(current_data.plotdata, gaugenos=gaugenos, format_string="kx", add_labels=True)
     plt.hold(False)
Esempio n. 15
0
 def locations_afteraxes(current_data, gaugenos='all'):
     gaugetools.plot_gauge_locations(current_data.plotdata,
                                     gaugenos=gaugenos,
                                     format_string='kx',
                                     add_labels=True)
     pcolor_afteraxes(current_data)
Esempio n. 16
0
def addgauges(current_data):
    gaugetools.plot_gauge_locations(current_data.plotdata, \
         gaugenos='all', format_string='ko', add_labels=True)
Esempio n. 17
0
def addgauges(current_data):
    from clawpack.visclaw import gaugetools

    gaugetools.plot_gauge_locations(current_data.plotdata, gaugenos="all", format_string="ko", add_labels=True)
Esempio n. 18
0
 def gauge_location_afteraxes(cd):
     plt.subplots_adjust(left=0.12, bottom=0.06, right=0.97, top=0.97)
     surge_afteraxes(cd)
     gaugetools.plot_gauge_locations(cd.plotdata, gaugenos='all',
                                     format_string='ko', add_labels=True)
Esempio n. 19
0
def addgauges(current_data):
    from clawpack.visclaw import gaugetools
    gaugetools.plot_gauge_locations(current_data.plotdata, \
                                    gaugenos='all', format_string='ko', add_labels=True)
Esempio n. 20
0
"""