Comments (3)
Thank you! This now works like a charm!
from nbstata.
This change (for version 1.0) will follow pystata's API more closely, in the sense that if you only set one dimension (at a time), the other dimension is also updated, using the default aspect ratio.
In other words,
%set graph_width = 3
followed by
%set graph_height = 3
will give you a different result than specifying both together:
%%
set graph_width = 3
set graph_height = 3
which will be the only way to get a square aspect ratio.
from nbstata.
For now (version 0.x), there's a workaround:
%%set
graph_width = default
graph_height = default
Or, if you want it to not cause errors when exported to a do file:
*%%set
/*
graph_width = default
graph_height = default
*/
Or, equivalently, add these lines to the config file:
graph_width = default
graph_height = default
from nbstata.
Related Issues (20)
- 404 GET message? HOT 2
- Contribute to user guide + Make sure stata works HOT 1
- Stata18 HOT 6
- Kernel crashes with certain comments HOT 1
- Request: conda-forge package HOT 1
- invalid config options HOT 2
- `%help` triggers an unhandled error
- %head fails with "head failed. must be real number, not str" HOT 7
- New animated gif, specific to nbstata HOT 1
- XDG spec for config files HOT 7
- Tabs vs Spaces HOT 8
- Add config file location to %status magic output
- Add a Stata Quarto tutorial HOT 5
- Improve ability to initialize Stata automatically HOT 1
- Display config file errors in notebook HOT 7
- Config file saved at custom location (by `install --prefix`) ignored
- Add docs about using as alternative to 'stata_setup' package
- nbstata compiles document but does not work in interactive mode in quarto documents (in RStudio) HOT 3
- Broken link in documentation HOT 1
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 nbstata.