code-review-aas241's People
Forkers
teuben mattcwilde annaog wallerf sablol acaboogert jwels1 emthebutler mdecleir sarahp623 ashaban0 cgchoza nanoza justinayang rjohns451 gunayburcu bencoughenour jayanags ldwebster erikstinnettcode-review-aas241's Issues
multi-line --help
allow for multi-line help in the --help. This will
be an argument in argparse.ArgumentParser() and you will likely need
to google around to see how you do multi-line.
3D fits cubes
allow for 3D FITS files. This should allow for a new -z option. The
default would be to pick a slice in Z and plot an image with imshow()
including a colorbar. Expanding on earlier options the vmin/vmax
allow you to pick a range to plot. It's also nice to think about
changing the colortable. Remember that now one can extract a profile
along X,Y,Z by picking two coordinates, or a plane, by picking one
coordinate. This option is involved, and could also involve splitting
up the work in parallel PR's after some initial design.
better error messages
add more error reporting if the file is not a 2D image
flexible plotting output device
allow a default screen output to be diverted to a plotfile (e.g. in
pdf,png,jpg etc.) so the script can be used in batch operations. We
used -plot to force that in an earlier example.
non-orthogonal plotting line
allow 1D plot for a non-orthogonal line (x0,y0) -> (x1,y0), instead of
the previously mentioned orthogonal. Either a new option could be
invented, or a trigger when both -x and -y are present with two
coordindate, eg. -x x0,x1 -y y0,y1 This is an example of overloading
options. Pro: fewer options Con: can be confusing, and harder to
program
more reporting
report the name and shape of the file on the terminal output
only produce one plot
to simplify the output, the new script should only allow one plot,
unlike the first demo, which allowed 3. See also #6 below for the
reason why. In batch use it's easier to call the script multiple times
instead of the complex way how multiple plots can be done from one
call.
add argparse
add argparse to accept the fitsfile as a required, and a -x and -y
flags to trigger if a given column (-x) or row (-y), is to be
plotted. For now, just use one value, but one could also imagine
allowing multiple, i.e. -x 20,30,40, or even a range, -x 20:30. But
see below, as this may complicate other options.
more flexible but optional plotting range
allow the plotting range to be fixed via -vmin and -vmax. Either
can be supplied, or both.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.