Skip to content

add quality and zmin parameter to improve elapsed time working with steamtube function #364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

gilbertogalvis
Copy link
Contributor

@gilbertogalvis gilbertogalvis commented Aug 27, 2021

This PR fix issues with:

  1. online mode
  2. elapsed time working with streamtube function by adding two optional parameter:
  • quality: percentage of quality to downsampling the data sent to plotly
  • zmin: to remove data lest than zmin

NOTE: To work with this new modifications TreatAs optional parameter must set to 'streamtube'

Example of usage:

load wind
[sx,sy,sz] = meshgrid(80,20:10:50,0:5:15);
streamtube(x,y,z,u,v,w,sx,sy,sz);
view(3);
axis tight
shading interp;
camlight; 
lighting gouraud

fig2plotly(gcf(), 'offline', 0, 'TreatAs', 'streamtube', 'quality', 30, 'Zmin', 6);

Results looks as follow (link to chart-studio)
https://chart-studio.plotly.com/~galvisgilberto/3764/#/

@gilbertogalvis gilbertogalvis merged commit f155efb into master Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants