Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Andrew obliterate and redo #39

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

Merged
merged 22 commits into from
Sep 19, 2014
Merged

Andrew obliterate and redo #39

merged 22 commits into from
Sep 19, 2014

Conversation

theengineear
Copy link
Contributor

Much cleaner redo, started from scratch to make sure all these urls are up to date. Still need to run the matlab scripts.

@theengineear
Copy link
Contributor Author

@mkcor, @xsaintmleux, i mentioned in the ggplotly HC room, but this graph isn't working: https://plot.ly/~TestBot/386

It was made from this code:

library(plotly)

py <- plotly(username='TestBot', key='r1neazxo9w')

data(canada.cities, package="maps")
viz <- ggplot(canada.cities, aes(long, lat)) +
  borders(regions="canada", name="borders") +
  coord_equal() +
  geom_point(aes(text=name, size=pop), colour="red", alpha=1/2, name="cities")

out <- py$ggplotly(viz)
plotly_url <- out$response$url

Any thoughts?

@theengineear
Copy link
Contributor Author

@chriddyp , @alexander-daniel , @BRONSOLO , @mkcor , @etpinard ,

Here's a fresh version of auto-docs. Should fix a lot of the (1) formatting stuff that's come up and (2) missing links.

Note, this has not been run with PlotBot, just TestBot.

I'd like to merge this in to master, update it with the changes in the shiny branch and then create a final branch that will be totally up-to-date and merge that in.

I clicked around and didn't notice anything that was alarming. That said, there are a lot of examples in here...

plotly.plot(data, graph_options, function (err, msg) {
console.log(msg);
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm... i don't think this are right. /js/ is for the javascript graphing library which has a different call signature than the node.js examples. the previous version of this example looked correct

Before, run.py was formatting all of the sign-in lines and
plot-calls. Now, these things happen in the code_translator.
Therefore, we need to actually insert lines into the code
we get back for the initializations to happen in a reasonable
order.
@theengineear
Copy link
Contributor Author

@chriddyp , alright, i'm pretty sure i fixed up all the issues you pointed out. The only one remaining is the Plotly.js stuff. We can just do some fancy git-footwork to keep the old files in streambed after we copy things over. Thanks for going over those files!!

@theengineear
Copy link
Contributor Author

@chriddyp , @etpinard , @mkcor , sorry to bug you guys, but I'd like to get this passed off so that i can merge in the shiny stuff, and then we can really be up-to-date on api docs.

@chriddyp , also, the file-options still aren't sorted in any way. i'll make a PR for the code_translator on that today, but i don't think it's worth waiting here for since i'll rerun this all after shiny stuff is included anyways.

response &lt;- p$plotly(data, kwargs=list(fileopt="overwrite", filename="basic-bar"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@theengineear I think this should be py$plotly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, yup, nice catch! this is also a code translator thing, the convention got changed at some point and it just needs to get updated.

@etpinard
Copy link
Contributor

Othewise, 👍

response &lt;- p$plotly(data, kwargs=list(layout=layout, fileopt="overwrite", filename="stacked-bar"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p should be py to be consistent with change above.

@theengineear
Copy link
Contributor Author

@chriddyp , @etpinard , @mkcor , all the comments posted look like they got clobbered by the newest diffs (yay). I'm going to merge this in and then work on getting shiny added in. Then, we should be good to mass-update our API docs!

theengineear added a commit that referenced this pull request Sep 19, 2014
@theengineear theengineear merged commit 12c60e2 into master Sep 19, 2014
@theengineear theengineear deleted the andrew-obliterate-and-redo branch September 19, 2014 00:21
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.

4 participants