44 ** AXGraphView** creates zoomable and scrollable graphs.
55
66## Screenshot
7- <img src =" ./images/screen1.png " width =200 title =" Screen " > <img src =" ./images/screen2.png " width =200 title =" Screen " > <img src =" ./images/screen3.png " width =200 title =" Screen " >
87
9- <img src =" ./images/screen4.png " width =200 title =" Screen " > <img src =" ./images/screen5.png " width =200 title =" Screen " > <img src =" ./images/screen6.png " width =200 title =" Screen " >
8+ <div align =" center " >
9+ <img src =" ./images/1.jpg " title =" Screen " >
10+ <img src =" ./images/2.jpg " title =" Screen " >
11+ </div >
1012
1113## Preview (GIF)
1214<img src =" ./images/AXGraphView.gif " width =300 title =" Preview " >
1820- [ Graph Axis] ( #graph-axis )
1921- [ Domain of Graph] ( #domain-of-graph )
2022- [ Custom Points] ( #custom-points )
23+ - [ Transform] ( #transform )
24+ - [ MultiFormula] ( #multiformula )
2125- [ Custom Draw] ( #custom-draw )
2226- [ Famous Graphs] ( #famous-graphs )
27+ - [ Multi Formula Graphs] ( #multi-formula-graphs )
2328- [ Author] ( #author )
2429- [ License] ( #license )
2530
@@ -28,15 +33,15 @@ AXGraphView is available in the JCenter, so you just need to add it as a depende
2833
2934Gradle
3035``` gradle
31- implementation 'com.aghajari.graphview:AXGraphView:1.0.0 '
36+ implementation 'com.aghajari.graphview:AXGraphView:1.0.2 '
3237```
3338
3439Maven
3540``` xml
3641<dependency >
3742 <groupId >com.aghajari.graphview</groupId >
3843 <artifactId >AXGraphView</artifactId >
39- <version >1.0.0 </version >
44+ <version >1.0.2 </version >
4045 <type >pom</type >
4146</dependency >
4247```
@@ -172,6 +177,42 @@ graphView.addFormula(new AXGraphFormula() { // Sin(x)
172177});
173178```
174179
180+ ## Transform
181+ You can move(x&y) or change scale(x&y) of the function on graph!
182+
183+ ``` java
184+ formula. applyTransformMove(3f ,2.5f );
185+ formula. applyTransformScale(1.5f ,1.5f );
186+ ```
187+
188+ ## MultiFormula
189+ You can also draw multi functions together.
190+
191+ ``` java
192+ public class HeartGraphFormula extends AXGraphMultiFormula {
193+
194+ @Override
195+ public float [] multiFunction (float x ) {
196+ return new float [] {
197+ function1(x),
198+ function2(x)
199+ };
200+ }
201+
202+ public float function1 (float x ) {
203+ return (float ) Math . sqrt(1 - Math . pow(Math . abs(x) - 1 ,2 ));
204+ }
205+
206+ public float function2 (float x ) {
207+ return (float ) (Math . acos(1 - Math . abs(x)) - Math . PI );
208+ }
209+ }
210+ ```
211+
212+ Output :
213+
214+ <img src =" ./images/graphs2/screen_heart.png " width =250 title =" Heart " >
215+
175216## Custom Draw
176217You can draw custom shapes using AXGraphCanvas (by graph x,y) :
177218
@@ -269,6 +310,17 @@ public class CircleGraphFormula extends PaintedGraphFormula {
269310| Cotangent| cot(x)| <img src =" ./images/graphs/cot.png " height =150 title =" Graph " >|
270311| Tangent And Cotangent| tan(x) , cot(x)| <img src =" ./images/graphs/tan_and_cot.png " height =150 title =" Graph " >|
271312
313+ ## Multi Formula Graphs
314+
315+ | Name| AXGraphView|
316+ | :----: | :----: |
317+ | Heart| <img src =" ./images/graphs2/heart.png " height =150 title =" Graph " >|
318+ | Captain America| <img src =" ./images/graphs2/captain_america.png " height =150 title =" Graph " >|
319+ | Superman| <img src =" ./images/graphs2/superman.png " height =150 title =" Graph " >|
320+ | Batman| <img src =" ./images/graphs2/batman.png " height =150 title =" Graph " >|
321+ | The Flash| <img src =" ./images/graphs2/flash.png " height =150 title =" Graph " >|
322+ | Wonder Woman| <img src =" ./images/graphs2/wonder_woman.png " height =150 title =" Graph " >|
323+
272324## Author
273325- ** Amir Hossein Aghajari**
274326
0 commit comments