예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #5
0
파일: plot.py 프로젝트: spotter0/geoclaw
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)
예제 #6
0
파일: plot.py 프로젝트: spotter0/geoclaw
def addgauges(current_data):
    gaugetools.plot_gauge_locations(current_data.plotdata, \
         gaugenos='all', format_string='ko', add_labels=True)
예제 #7
0

        
예제 #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)
예제 #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)
예제 #10
0
파일: setplot.py 프로젝트: yangyha/geoclaw
 def addgauges(current_data):
     from clawpack.visclaw import gaugetools
     gaugetools.plot_gauge_locations(current_data.plotdata, \
          gaugenos='all', format_string='ko', add_labels=True)
예제 #11
0
파일: setplot.py 프로젝트: aks2203/geoclaw
 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)
예제 #12
0
 def addgauges(current_data):
     gaugetools.plot_gauge_locations(current_data.plotdata, \
          gaugenos=[21401, 21413, 21418, 21419], format_string='ko', add_labels=True)
예제 #13
0
파일: setplot.py 프로젝트: nthakkar/apps
 def addgauges(current_data):
     gaugetools.plot_gauge_locations(current_data.plotdata, gaugenos="all", format_string="ko", add_labels=True)
예제 #14
0
파일: setplot.py 프로젝트: nthakkar/apps
 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)
예제 #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)
예제 #16
0
파일: plot.py 프로젝트: sarasamuel/geoclaw
def addgauges(current_data):
    gaugetools.plot_gauge_locations(current_data.plotdata, \
         gaugenos='all', format_string='ko', add_labels=True)
예제 #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)
예제 #18
0
파일: setplot.py 프로젝트: aks2203/geoclaw
 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)
예제 #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)
예제 #20
0
"""