Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run this in https://dartpad.dartlang.org/flutter | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MaterialApp( | |
title: 'Navigation Basics', | |
home: MainRoute(), | |
)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# vim: set fileencoding=utf-8 : | |
# -*- coding: utf-8 -*- | |
######################################################################## | |
# Copyright (C) 2012 by Carlos Veiga Rodrigues. All rights reserved. | |
# author: Carlos Veiga Rodrigues <[email protected]> | |
# version: 1.0, date: January 2012 | |
# | |
# This program can be redistribuited and modified | |
# under the terms of the GNU Lesser General Public License |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# vim: set fileencoding=utf-8 : | |
# -*- coding: utf-8 -*- | |
######################################################################## | |
# Copyright (C) 2011 by Carlos Veiga Rodrigues. All rights reserved. | |
# author: Carlos Veiga Rodrigues <[email protected]> | |
# | |
# This program can be redistribuited and modified | |
# under the terms of the GNU Lesser General Public License | |
# as published by the Free Software Foundation, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
## COLORBAR | |
cb=plt.colorbar(cf, cax=cx) | |
cx.set_xlabel(r"Variable Z", labelpad=10) | |
cx.xaxis.set_label_position('top') | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
## COLORBAR | |
cb=plt.colorbar(cf, cax=cx) | |
cx.set_title(r"Variable Z") | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fig=plt.figure() | |
## AXES HANDLE | |
ax=fig.add_axes(mpltr.Bbox([[ .14 , .14 ],[ .90 , .92 ]])) | |
## COLORBAR AXES HANDLE | |
cx=fig.add_axes(mpltr.Bbox([[ .91 , .14 ],[ .93 , .92 ]])) | |
... | |
## PLOT THE STUFF YOU WANT | |
ax.contourf(X, Y, Z, etc... ) | |
... | |
## COLORBAR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REAL, PARAMETER :: SMALL = 1.E-18 | |
!! for a divisor b>0 | |
c = a/MAX(b, SMALL) | |
!! for a divisor b with an arbitrary sign | |
c = a/SIGN(MAX(ABS(b), SMALL), b) |