Comments (4)
Suggestions for the form of html_table_line from the user side (with p1, p2, px being climaf objects of type figure):
- html_table_line( { 'My figure p1' : p1, 'My figure p2' : p2, 'My figure px' : px})
Then html_table_line would loop on the elements of the dictionary. The facets will be used as titles and the values are the plots.
Or: - html_table_line( plots=[p1, p2, px], titles=[ 'My figure p1', 'My figure p2', 'My figure px' ] )
The first form is more compact and pretty logical in a way. The second form is more basic, maybe more readable. Please give your comments!
from climaf.
I would vote for first form. This would lead to rename the present function html_table_line to something like 'html_table_line_with_func' (because it is calling some function iteratively for computing figures).
Alos : the new html_table_line should allow for a 'thumbnail' argument, in which case the dict argument could be a list (because titles would be replaced by thumbnail images)
from climaf.
Form 1 suggested by Jerome sounds the best to me too.
But I would keep "html rendering" and "plot creation" as separated operations. Thus, I would advocate in favor of removing plot creation step (call to a function) from html_table_lines.
Intuitively user comptes his diags, creates associated plot objects first and call for an html rendering in a second step. Moreover he may want to draw different types of plot (time serie, map, slice) on a same line that would not be possible with a "create_plot" function embedded within html_tables_lines (or this woud require to pass an additionnal dictionary in arguments with the list of plot types).
from climaf.
Agree. Suggestions implemented in V0.10
from climaf.
Related Issues (20)
- Weird side effect when specifying a period with period='last_100y'
- explore('choices') should list all its results in the same order HOT 1
- Make it easier to find ensemble means (and similar operations) in the documentation
- Is there a way to print a (more) detailed CRS? HOT 2
- Possible error at the beginning of "Functions returning ClimAF objects" page
- Notes about cscalar documentation and usage
- Documentation says that some operators can work on ONLY ONE dataset, when they can work on ensembles HOT 2
- Is there something wrong with clist() or my cache ? HOT 4
- llbox domain specification vs actual data domain in object or in a file
- Improving the output of the cache related functions
- Exporting a ds to xarray HOT 2
- Install CliMAF on climserv
- Can CliMAF handle multiple realizations when project=='CMIP5' ? HOT 1
- Typo in the error message send by ds HOT 1
- Mention the "spirit" servers at IPSL HOT 6
- Mention what "CliMAF" means more clearly on the doc home page
- Check what can be used from xCDAT (CDAT => xarray+xCDAT)
- Making CliMAF easier to find on Google
- Update default documentation, and improve usage on spirit ( and spiritx ?) HOT 1
- regrid(field,field) != field
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.
from climaf.